Made suggested changes

This commit is contained in:
dherrada 2020-02-24 22:13:04 -05:00
parent 6268744937
commit 9a1cd592e2

View file

@ -3,11 +3,8 @@ import adafruit_ble
import board
import pyloton
# PyLint can't find BLERadio for some reason so special case it here.
ble = adafruit_ble.BLERadio() # pylint: disable=no-member
display = board.DISPLAY
CONNECTION_TIMEOUT = 45
HEART = True
@ -17,7 +14,7 @@ AMS = True
DEBUG = False
# 84.229 is wheel circumference (700x23 in my case)
pyloton = pyloton.Pyloton(ble, display, 84.229, HEART, SPEED, CADENCE, AMS, DEBUG)
pyloton = pyloton.Pyloton(ble, board.DISPLAY, 84.229, HEART, SPEED, CADENCE, AMS, DEBUG)
pyloton.show_splash()