Skip to content

Commit 14645af

Browse files
committed
black
1 parent 2e7b6d8 commit 14645af

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

CLUE_Milk_Checker/code.py

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,26 @@
88
import adafruit_imageload
99
from adafruit_clue import clue
1010

11-
#--| User Config |-------------------------
12-
TVOC_LEVELS = (80, 120) # set two TVOC levels
13-
MESSAGES = ("GOOD", "SUS?", "BAD!") # set three messages (4 char max)
14-
#------------------------------------------
11+
# --| User Config |-------------------------
12+
TVOC_LEVELS = (80, 120) # set two TVOC levels
13+
MESSAGES = ("GOOD", "SUS?", "BAD!") # set three messages (4 char max)
14+
# ------------------------------------------
1515

1616
# setup UI
1717
cow_bmp, cow_pal = adafruit_imageload.load("bmps/milk_bg.bmp")
1818
background = displayio.TileGrid(cow_bmp, pixel_shader=cow_pal)
1919

2020
mouth_bmp, mouth_pal = adafruit_imageload.load("bmps/mouth_sheet.bmp")
21-
mouth = displayio.TileGrid(mouth_bmp, pixel_shader=mouth_pal,
22-
tile_width = 40,
23-
tile_height = 20,
24-
width = 1,
25-
height = 1,
26-
x = 35, y=110)
21+
mouth = displayio.TileGrid(
22+
mouth_bmp,
23+
pixel_shader=mouth_pal,
24+
tile_width=40,
25+
tile_height=20,
26+
width=1,
27+
height=1,
28+
x=35,
29+
y=110,
30+
)
2731

2832
msg_font = bitmap_font.load_font("fonts/Alphakind_28.bdf")
2933
msg_font.load_glyphs("".join(MESSAGES))

0 commit comments

Comments
 (0)