File tree 2 files changed +3
-12
lines changed
2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 26
26
# add new values to sparkline `add_value`
27
27
# update the sparklines `update`
28
28
29
+ import random
30
+ import time
29
31
import board
30
32
import displayio
31
33
import terminalio
32
- import random
33
- import time
34
34
from adafruit_display_shapes .sparkline import Sparkline
35
- from adafruit_ili9341 import ILI9341
36
- from adafruit_display_text import label
37
35
from adafruit_display_shapes .line import Line
38
36
from adafruit_display_shapes .rect import Rect
37
+ from adafruit_display_text import label
39
38
40
39
if "DISPLAY" not in dir (board ):
41
40
# Setup the LCD display with driver
54
53
55
54
while not spi .try_lock ():
56
55
spi .configure (baudrate = 32000000 )
57
- pass
58
56
spi .unlock ()
59
57
60
58
display_bus = displayio .FourWire (
Original file line number Diff line number Diff line change 32
32
import displayio
33
33
import terminalio
34
34
from adafruit_display_shapes .sparkline import Sparkline
35
- from adafruit_ili9341 import ILI9341
36
35
from adafruit_display_text import label
37
36
38
- import gc
39
-
40
37
if "DISPLAY" not in dir (board ):
41
38
# Setup the LCD display with driver
42
39
# You may need to change this to match the display driver for the chipset
54
51
55
52
while not spi .try_lock ():
56
53
spi .configure (baudrate = 32000000 )
57
- pass
58
54
spi .unlock ()
59
55
60
56
display_bus = displayio .FourWire (
264
260
# The display seems to be less jittery if a small sleep time is provided
265
261
# You can adjust this to see if it has any effect
266
262
time .sleep (0.01 )
267
-
268
- # Uncomment the next line to print the amount of available memory
269
- # print('memory free: {}'.format(gc.mem_free()))
You can’t perform that action at this time.
0 commit comments