Merge pull request #1995 from caternuson/update_for_bundlefly
Update for bundlefly
|
|
@ -15,7 +15,7 @@ pin_alarms = [alarm.pin.PinAlarm(pin=pin, value=False, pull=True) for pin in but
|
|||
alarm.sleep_memory[0] = not alarm.sleep_memory[0]
|
||||
|
||||
# set bitmap
|
||||
bmp_file = "clean.bmp" if alarm.sleep_memory[0] else "dirty.bmp"
|
||||
bmp_file = "/images/clean.bmp" if alarm.sleep_memory[0] else "/images/dirty.bmp"
|
||||
|
||||
# show bitmap
|
||||
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
|
Before Width: | Height: | Size: 38 KiB After Width: | Height: | Size: 38 KiB |
|
|
@ -33,12 +33,12 @@ _, y, _ = lis.acceleration
|
|||
# update based on orientation
|
||||
if y > 0:
|
||||
# upside up
|
||||
bmp_file = "clean.bmp"
|
||||
bmp_file = "/images/clean.bmp"
|
||||
rotation = 270
|
||||
irq_config = 0b01000100
|
||||
else:
|
||||
# upside down
|
||||
bmp_file = "dirty.bmp"
|
||||
bmp_file = "/images/dirty.bmp"
|
||||
rotation = 90
|
||||
irq_config = 0b01001000
|
||||
|
||||
|
|
|
|||
BIN
MagTag_Dishwasher_Status/wake_on_flip/images/clean.bmp
Executable file
|
After Width: | Height: | Size: 19 KiB |
BIN
MagTag_Dishwasher_Status/wake_on_flip/images/dirty.bmp
Executable file
|
After Width: | Height: | Size: 38 KiB |
|
|
@ -27,7 +27,7 @@ ble._adapter.name = BLE_NAME #pylint: disable=protected-access
|
|||
display = tft_gizmo.TFT_Gizmo()
|
||||
|
||||
# Load the candy heart BMP
|
||||
bitmap, palette = adafruit_imageload.load("/heart_bw.bmp",
|
||||
bitmap, palette = adafruit_imageload.load("/images/heart_bw.bmp",
|
||||
bitmap=displayio.Bitmap,
|
||||
palette=displayio.Palette)
|
||||
|
||||
|
|
@ -36,7 +36,7 @@ heart = displayio.TileGrid(bitmap, pixel_shader=palette)
|
|||
# Set up message text
|
||||
LINE1_MAX = 9
|
||||
LINE2_MAX = 5
|
||||
font = bitmap_font.load_font("/Multicolore_36.bdf")
|
||||
font = bitmap_font.load_font("/fonts/Multicolore_36.bdf")
|
||||
line1 = label.Label(font, text="?"*LINE1_MAX)
|
||||
line2 = label.Label(font, text="?"*LINE2_MAX)
|
||||
line1.anchor_point = (0.5, 0) # middle top
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.6 KiB |
|
|
@ -34,14 +34,14 @@ MESSAGE_COLORS = (
|
|||
display = tft_gizmo.TFT_Gizmo()
|
||||
|
||||
# Load the candy heart BMP
|
||||
bitmap, palette = adafruit_imageload.load("/heart_bw.bmp",
|
||||
bitmap, palette = adafruit_imageload.load("/images/heart_bw.bmp",
|
||||
bitmap=displayio.Bitmap,
|
||||
palette=displayio.Palette)
|
||||
|
||||
heart = displayio.TileGrid(bitmap, pixel_shader=palette)
|
||||
|
||||
# Set up message text
|
||||
font = bitmap_font.load_font("/Multicolore_36.bdf")
|
||||
font = bitmap_font.load_font("/fonts/Multicolore_36.bdf")
|
||||
line1 = label.Label(font, text="?"*9)
|
||||
line2 = label.Label(font, text="?"*5)
|
||||
line1.anchor_point = (0.5, 0) # middle top
|
||||
|
|
|
|||
8555
TFT_Gizmo_Candy_Hearts/candy_hearts/fonts/Multicolore_36.bdf
Executable file
BIN
TFT_Gizmo_Candy_Hearts/candy_hearts/images/heart_bw.bmp
Executable file
|
After Width: | Height: | Size: 7.6 KiB |
|
|
@ -27,7 +27,7 @@ ble._adapter.name = BLE_NAME #pylint: disable=protected-access
|
|||
display = board.DISPLAY
|
||||
|
||||
# Load the candy heart BMP
|
||||
bitmap, palette = adafruit_imageload.load("/heart_bw.bmp",
|
||||
bitmap, palette = adafruit_imageload.load("/images/heart_bw.bmp",
|
||||
bitmap=displayio.Bitmap,
|
||||
palette=displayio.Palette)
|
||||
|
||||
|
|
@ -36,7 +36,7 @@ heart = displayio.TileGrid(bitmap, pixel_shader=palette)
|
|||
# Set up message text
|
||||
LINE1_MAX = 9
|
||||
LINE2_MAX = 5
|
||||
font = bitmap_font.load_font("/Multicolore_36.bdf")
|
||||
font = bitmap_font.load_font("/fonts/Multicolore_36.bdf")
|
||||
line1 = label.Label(font, text="?"*LINE1_MAX)
|
||||
line2 = label.Label(font, text="?"*LINE2_MAX)
|
||||
line1.anchor_point = (0.5, 0) # middle top
|
||||
|
|
|
|||
8555
TFT_Gizmo_Candy_Hearts/clue_heart_ble/fonts/Multicolore_36.bdf
Executable file
BIN
TFT_Gizmo_Candy_Hearts/clue_heart_ble/images/heart_bw.bmp
Executable file
|
After Width: | Height: | Size: 7.6 KiB |
|
|
@ -34,14 +34,14 @@ MESSAGE_COLORS = (
|
|||
display = board.DISPLAY
|
||||
|
||||
# Load the candy heart BMP
|
||||
bitmap, palette = adafruit_imageload.load("/heart_bw.bmp",
|
||||
bitmap, palette = adafruit_imageload.load("/images/heart_bw.bmp",
|
||||
bitmap=displayio.Bitmap,
|
||||
palette=displayio.Palette)
|
||||
|
||||
heart = displayio.TileGrid(bitmap, pixel_shader=palette)
|
||||
|
||||
# Set up message text
|
||||
font = bitmap_font.load_font("/Multicolore_36.bdf")
|
||||
font = bitmap_font.load_font("/fonts/Multicolore_36.bdf")
|
||||
line1 = label.Label(font, text="?"*9)
|
||||
line2 = label.Label(font, text="?"*5)
|
||||
line1.anchor_point = (0.5, 0) # middle top
|
||||
|
|
|
|||
8555
TFT_Gizmo_Candy_Hearts/clue_hearts/fonts/Multicolore_36.bdf
Executable file
BIN
TFT_Gizmo_Candy_Hearts/clue_hearts/images/heart_bw.bmp
Executable file
|
After Width: | Height: | Size: 7.6 KiB |