Skip to content

Commit

Permalink
Merge pull request #42 from dherrada/i2c-fix
Browse files Browse the repository at this point in the history
Changed busio.i2c to board.i2c
  • Loading branch information
dhalbert authored May 6, 2020
2 parents 04f9254 + ebd10f1 commit 82ecc0c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/gps_datalogging.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
# uart = serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=10)

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

# Create a GPS module instance.
gps = adafruit_gps.GPS(uart) # Use UART/pyserial
Expand Down
2 changes: 1 addition & 1 deletion examples/gps_echotest.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# uart = serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=10)

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

# Create a GPS module instance.
gps = adafruit_gps.GPS(uart) # Use UART/pyserial
Expand Down
2 changes: 1 addition & 1 deletion examples/gps_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
# uart = serial.Serial("/dev/ttyUSB0", baudrate=9600, timeout=10)

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

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

0 comments on commit 82ecc0c

Please sign in to comment.