diff --git a/adafruit_featherwing/gps_featherwing.py b/adafruit_featherwing/gps_featherwing.py index bbf917a..2924911 100644 --- a/adafruit_featherwing/gps_featherwing.py +++ b/adafruit_featherwing/gps_featherwing.py @@ -31,9 +31,9 @@ __version__ = "0.0.0-auto.0" __repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_FeatherWing.git" +import board import busio import adafruit_gps -from adafruit_featherwing import shared class GPSFeatherWing: """Class representing an `Ultimate GPS FeatherWing @@ -54,7 +54,7 @@ def __init__(self, update_period=1000, baudrate=9600): if timeout < 3: timeout = 3 - self._uart = busio.UART(shared.TX, shared.RX, baudrate=baudrate, timeout=timeout) + self._uart = busio.UART(board.TX, board.RX, baudrate=baudrate, timeout=timeout) self._gps = adafruit_gps.GPS(self._uart, debug=False) # Turn on the basic GGA and RMC info self._gps.send_command(bytes('PMTK314,0,1,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0', 'utf-8')) diff --git a/adafruit_featherwing/shared.py b/adafruit_featherwing/shared.py index 379592f..f0a3f68 100644 --- a/adafruit_featherwing/shared.py +++ b/adafruit_featherwing/shared.py @@ -33,6 +33,3 @@ import busio I2C_BUS = busio.I2C(board.SCL, board.SDA) - -RX = board.RX -TX = board.TX