Skip to content

Commit 401f6a2

Browse files
author
Melissa LeBlanc-Williams
committed
Fixed I2C issue on Feather M4 Express
1 parent 9b88065 commit 401f6a2

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

adafruit_featherwing/gps_featherwing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@
3131
__version__ = "0.0.0-auto.0"
3232
__repo__ = "https://github.com/adafruit/Adafruit_CircuitPython_FeatherWing.git"
3333

34+
import board
3435
import busio
3536
import adafruit_gps
36-
from adafruit_featherwing import shared
3737

3838
class GPSFeatherWing:
3939
"""Class representing an `Ultimate GPS FeatherWing
@@ -54,7 +54,7 @@ def __init__(self, update_period=1000, baudrate=9600):
5454
if timeout < 3:
5555
timeout = 3
5656

57-
self._uart = busio.UART(shared.TX, shared.RX, baudrate=baudrate, timeout=timeout)
57+
self._uart = busio.UART(board.TX, board.RX, baudrate=baudrate, timeout=timeout)
5858
self._gps = adafruit_gps.GPS(self._uart, debug=False)
5959
# Turn on the basic GGA and RMC info
6060
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'))

adafruit_featherwing/shared.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,3 @@
3333
import busio
3434

3535
I2C_BUS = busio.I2C(board.SCL, board.SDA)
36-
37-
RX = board.RX
38-
TX = board.TX

0 commit comments

Comments
 (0)