File tree Expand file tree Collapse file tree 2 files changed +7
-17
lines changed Expand file tree Collapse file tree 2 files changed +7
-17
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ Usage Example
3636
3737 spi = board.SPI()
3838 while not spi.try_lock():
39- pass
39+ pass
4040 spi.configure(baudrate = 24000000 ) # Configure SPI for 24MHz
4141 spi.unlock()
4242 tft_cs = board.D5
@@ -55,14 +55,9 @@ Usage Example
5555 color_palette = displayio.Palette(1 )
5656 color_palette[0 ] = 0x FF0000
5757
58- try :
59- bg_sprite = displayio.TileGrid(color_bitmap,
60- pixel_shader = color_palette,
61- position = (0 , 0 ))
62- except TypeError :
63- bg_sprite = displayio.TileGrid(color_bitmap,
64- pixel_shader = color_palette,
65- x = 0 , y = 0 )
58+ bg_sprite = displayio.TileGrid(color_bitmap,
59+ pixel_shader = color_palette,
60+ x = 0 , y = 0 )
6661 splash.append(bg_sprite)
6762
6863 while True :
Original file line number Diff line number Diff line change 2828color_palette = displayio .Palette (1 )
2929color_palette [0 ] = 0xFF0000
3030
31- try :
32- bg_sprite = displayio .TileGrid (color_bitmap ,
33- pixel_shader = color_palette ,
34- position = (0 , 0 ))
35- except TypeError :
36- bg_sprite = displayio .TileGrid (color_bitmap ,
37- pixel_shader = color_palette ,
38- x = 0 , y = 0 )
31+ bg_sprite = displayio .TileGrid (color_bitmap ,
32+ pixel_shader = color_palette ,
33+ x = 0 , y = 0 )
3934splash .append (bg_sprite )
4035
4136while True :
You can’t perform that action at this time.
0 commit comments