From 401f6a27ca1729c1311f9c2afc224a1b0f622390 Mon Sep 17 00:00:00 2001 From: Melissa LeBlanc-Williams Date: Sat, 23 Feb 2019 22:09:19 -0800 Subject: [PATCH] Fixed I2C issue on Feather M4 Express --- adafruit_featherwing/gps_featherwing.py | 4 ++-- adafruit_featherwing/shared.py | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) 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