Skip to content

Commit 9a1cd59

Browse files
committed
Made suggested changes
1 parent 6268744 commit 9a1cd59

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

CircuitPython_Pyloton/code.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
import board
44
import pyloton
55

6-
# PyLint can't find BLERadio for some reason so special case it here.
76
ble = adafruit_ble.BLERadio() # pylint: disable=no-member
87

9-
display = board.DISPLAY
10-
118
CONNECTION_TIMEOUT = 45
129

1310
HEART = True
@@ -17,7 +14,7 @@
1714
DEBUG = False
1815

1916
# 84.229 is wheel circumference (700x23 in my case)
20-
pyloton = pyloton.Pyloton(ble, display, 84.229, HEART, SPEED, CADENCE, AMS, DEBUG)
17+
pyloton = pyloton.Pyloton(ble, board.DISPLAY, 84.229, HEART, SPEED, CADENCE, AMS, DEBUG)
2118

2219
pyloton.show_splash()
2320

0 commit comments

Comments
 (0)