Skip to content

Commit 2141e5d

Browse files
authored
Merge pull request #8 from kmatch98/auto_update
Pylint updates and ran black
2 parents 1234d0a + cf9551c commit 2141e5d

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

examples/display_shapes_sparkline_ticks.py

+3-5
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,15 @@
2626
# add new values to sparkline `add_value`
2727
# update the sparklines `update`
2828

29+
import random
30+
import time
2931
import board
3032
import displayio
3133
import terminalio
32-
import random
33-
import time
3434
from adafruit_display_shapes.sparkline import Sparkline
35-
from adafruit_ili9341 import ILI9341
36-
from adafruit_display_text import label
3735
from adafruit_display_shapes.line import Line
3836
from adafruit_display_shapes.rect import Rect
37+
from adafruit_display_text import label
3938

4039
if "DISPLAY" not in dir(board):
4140
# Setup the LCD display with driver
@@ -54,7 +53,6 @@
5453

5554
while not spi.try_lock():
5655
spi.configure(baudrate=32000000)
57-
pass
5856
spi.unlock()
5957

6058
display_bus = displayio.FourWire(

examples/display_shapes_sparkline_triple.py

-7
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,8 @@
3232
import displayio
3333
import terminalio
3434
from adafruit_display_shapes.sparkline import Sparkline
35-
from adafruit_ili9341 import ILI9341
3635
from adafruit_display_text import label
3736

38-
import gc
39-
4037
if "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
@@ -54,7 +51,6 @@
5451

5552
while not spi.try_lock():
5653
spi.configure(baudrate=32000000)
57-
pass
5854
spi.unlock()
5955

6056
display_bus = displayio.FourWire(
@@ -264,6 +260,3 @@
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()))

0 commit comments

Comments
 (0)