Skip to content

Commit 66b53b0

Browse files
authored
Merge pull request adafruit#1102 from adafruit/clue-paint
Add CLUE Light Painter code & images
2 parents 301e64a + dfde2e5 commit 66b53b0

File tree

13 files changed

+1868
-0
lines changed

13 files changed

+1868
-0
lines changed

CLUE_Light_Painter/bmp2led.py

Lines changed: 397 additions & 0 deletions
Large diffs are not rendered by default.
72 KB
Binary file not shown.
15.2 KB
Binary file not shown.
15.2 KB
Binary file not shown.
38 KB
Binary file not shown.
25.4 KB
Binary file not shown.
27.5 KB
Binary file not shown.

CLUE_Light_Painter/boot.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
"""
2+
Check for connection between pin and GND on hard boot (power-on or reset).
3+
If NO connection: storage is remounted as read/write so the light painter
4+
code can run (it requires temporary files), but code.py can't be edited.
5+
If connected: storage is left in read-only mode. Light painter code can't
6+
run but files are editable.
7+
"""
8+
9+
# pylint: disable=import-error
10+
import board
11+
import digitalio
12+
import storage
13+
14+
PIN = board.D0
15+
16+
IO = digitalio.DigitalInOut(PIN)
17+
IO.direction = digitalio.Direction.INPUT
18+
IO.pull = digitalio.Pull.UP
19+
20+
if IO.value: # No connection
21+
storage.remount('/', False) # Remount storage as read/write for painter

CLUE_Light_Painter/code.py

Lines changed: 518 additions & 0 deletions
Large diffs are not rendered by default.

CLUE_Light_Painter/prior-attempt-fail/code.py

Lines changed: 527 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)