File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change 2929import busio
3030import time
3131from digitalio import DigitalInOut , Direction , Pull
32+ from piper_blockly import digital_view
3233import _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#
96106def brightness (level ):
97107 pass
98108
99109def show (pix ):
100- _screen .blit (pix )
110+ _screen .draw (pix )
111+ digital_view_display ()
112+
101113
102114def tick (delay ):
103115 global _tick
You can’t perform that action at this time.
0 commit comments