Skip to content

Commit 1ffa172

Browse files
authored
Merge pull request #914 from caternuson/snowglobe
Add bitmaps and fix BACKGROUND fallback
2 parents 145caad + 0df9098 commit 1ffa172

File tree

4 files changed

+2
-0
lines changed

4 files changed

+2
-0
lines changed

TFT_Gizmo_Snowglobe/blinka_dark.bmp

57.4 KB
Binary file not shown.

TFT_Gizmo_Snowglobe/flakes_sheet.bmp

146 Bytes
Binary file not shown.

TFT_Gizmo_Snowglobe/snowglobe_fancy.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
palette=displayio.Palette)
4747
# Or just use solid color
4848
except (OSError, TypeError):
49+
BACKGROUND = BACKGROUND if isinstance(BACKGROUND, int) else 0x000000
4950
bg_bitmap = displayio.Bitmap(WIDTH, HEIGHT, 1)
5051
bg_palette = displayio.Palette(1)
5152
bg_palette[0] = BACKGROUND

TFT_Gizmo_Snowglobe/snowglobe_simple.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
palette=displayio.Palette)
4040
# Or just use solid color
4141
except (OSError, TypeError):
42+
BACKGROUND = BACKGROUND if isinstance(BACKGROUND, int) else 0x000000
4243
bg_bitmap = displayio.Bitmap(WIDTH, HEIGHT, 1)
4344
bg_palette = displayio.Palette(1)
4445
bg_palette[0] = BACKGROUND

0 commit comments

Comments
 (0)