Skip to content

Commit 8f623a1

Browse files
Update piper_lightshow.py
1 parent 8e5c985 commit 8f623a1

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

piper_lightshow.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import busio
3030
import time
3131
from digitalio import DigitalInOut, Direction, Pull
32+
from piper_blockly import digital_view
3233
import _lightshow
3334

3435
__version__ = "0.9.5"
@@ -91,13 +92,24 @@ def rgb_to_byte(color):
9192
b = ((color[2] >> 6) & 3)
9293
return (r | g | b)
9394

95+
def digital_view_display()
96+
try:
97+
if (digital_view == True):
98+
print(chr(17), "GP17|D", chr(16), end="")
99+
print(chr(17), "GP18|D", chr(16), end="")
100+
print(chr(17), "GP19|D", chr(16), end="")
101+
except:
102+
pass
103+
94104
# Placeholder for global brightness setting
95105
#
96106
def brightness(level):
97107
pass
98108

99109
def show(pix):
100-
_screen.blit(pix)
110+
_screen.draw(pix)
111+
digital_view_display()
112+
101113

102114
def tick(delay):
103115
global _tick

0 commit comments

Comments
 (0)