From 9a1cd592e21e054ffef93864b1b0922346be8785 Mon Sep 17 00:00:00 2001 From: dherrada Date: Mon, 24 Feb 2020 22:13:04 -0500 Subject: [PATCH] Made suggested changes --- CircuitPython_Pyloton/code.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/CircuitPython_Pyloton/code.py b/CircuitPython_Pyloton/code.py index 986f4f37b..b6d7d6fc8 100644 --- a/CircuitPython_Pyloton/code.py +++ b/CircuitPython_Pyloton/code.py @@ -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()