Skip to content

Commit 82ecc0c

Browse files
authored
Merge pull request #42 from dherrada/i2c-fix
Changed busio.i2c to board.i2c
2 parents 04f9254 + ebd10f1 commit 82ecc0c

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

examples/gps_datalogging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
# uart = serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=10)
5252

5353
# If using I2C, we'll create an I2C interface to talk to using default pins
54-
# i2c = busio.I2C(board.SCL, board.SDA)
54+
# i2c = board.I2C()
5555

5656
# Create a GPS module instance.
5757
gps = adafruit_gps.GPS(uart) # Use UART/pyserial

examples/gps_echotest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# uart = serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=10)
1919

2020
# If using I2C, we'll create an I2C interface to talk to using default pins
21-
# i2c = busio.I2C(board.SCL, board.SDA)
21+
# i2c = board.I2C()
2222

2323
# Create a GPS module instance.
2424
gps = adafruit_gps.GPS(uart) # Use UART/pyserial

examples/gps_simpletest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# uart = serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=10)
1919

2020
# If using I2C, we'll create an I2C interface to talk to using default pins
21-
# i2c = busio.I2C(board.SCL, board.SDA)
21+
# i2c = board.I2C()
2222

2323
# Create a GPS module instance.
2424
gps = adafruit_gps.GPS(uart, debug=False) # Use UART/pyserial

0 commit comments

Comments
 (0)