File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 2626# add new values to sparkline `add_value`
2727# update the sparklines `update`
2828
29+ import random
30+ import time
2931import board
3032import displayio
3133import terminalio
32- import random
33- import time
3434from adafruit_display_shapes .sparkline import Sparkline
35- from adafruit_ili9341 import ILI9341
36- from adafruit_display_text import label
3735from adafruit_display_shapes .line import Line
3836from adafruit_display_shapes .rect import Rect
37+ from adafruit_display_text import label
3938
4039if "DISPLAY" not in dir (board ):
4140 # Setup the LCD display with driver
5453
5554 while not spi .try_lock ():
5655 spi .configure (baudrate = 32000000 )
57- pass
5856 spi .unlock ()
5957
6058 display_bus = displayio .FourWire (
Original file line number Diff line number Diff line change 3232import displayio
3333import terminalio
3434from adafruit_display_shapes .sparkline import Sparkline
35- from adafruit_ili9341 import ILI9341
3635from adafruit_display_text import label
3736
38- import gc
39-
4037if "DISPLAY" not in dir (board ):
4138 # Setup the LCD display with driver
4239 # You may need to change this to match the display driver for the chipset
5451
5552 while not spi .try_lock ():
5653 spi .configure (baudrate = 32000000 )
57- pass
5854 spi .unlock ()
5955
6056 display_bus = displayio .FourWire (
264260 # The display seems to be less jittery if a small sleep time is provided
265261 # You can adjust this to see if it has any effect
266262 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