File tree Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Expand file tree Collapse file tree 1 file changed +14
-10
lines changed Original file line number Diff line number Diff line change 8
8
import adafruit_imageload
9
9
from adafruit_clue import clue
10
10
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
+ # ------------------------------------------
15
15
16
16
# setup UI
17
17
cow_bmp , cow_pal = adafruit_imageload .load ("bmps/milk_bg.bmp" )
18
18
background = displayio .TileGrid (cow_bmp , pixel_shader = cow_pal )
19
19
20
20
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
+ )
27
31
28
32
msg_font = bitmap_font .load_font ("fonts/Alphakind_28.bdf" )
29
33
msg_font .load_glyphs ("" .join (MESSAGES ))
You can’t perform that action at this time.
0 commit comments