Merge pull request #1995 from caternuson/update_for_bundlefly

Update for bundlefly
This commit is contained in:
Anne Barela 2022-01-31 14:33:39 -05:00 committed by GitHub
commit 8ccd02c286
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 25676 additions and 11 deletions

View file

@ -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

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 38 KiB

After

Width:  |  Height:  |  Size: 38 KiB

View file

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View file

@ -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

View file

Before

Width:  |  Height:  |  Size: 7.6 KiB

After

Width:  |  Height:  |  Size: 7.6 KiB

View file

@ -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

File diff suppressed because it is too large Load diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

View file

@ -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

File diff suppressed because it is too large Load diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

View file

@ -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

File diff suppressed because it is too large Load diff

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB