From 157fd77ca99f381565d518fbaaad20099d55d1c6 Mon Sep 17 00:00:00 2001 From: dherrada Date: Fri, 27 Mar 2020 14:05:46 -0400 Subject: [PATCH 1/4] Changed busio.i2c to board.i2c --- examples/gps_datalogging.py | 2 +- examples/gps_echotest.py | 2 +- examples/gps_simpletest.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/gps_datalogging.py b/examples/gps_datalogging.py index cc6b540..c317d47 100644 --- a/examples/gps_datalogging.py +++ b/examples/gps_datalogging.py @@ -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(board.SCL, board.SDA) # Create a GPS module instance. gps = adafruit_gps.GPS(uart) # Use UART/pyserial diff --git a/examples/gps_echotest.py b/examples/gps_echotest.py index 57c970f..4b599cb 100644 --- a/examples/gps_echotest.py +++ b/examples/gps_echotest.py @@ -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(board.SCL, board.SDA) # Create a GPS module instance. gps = adafruit_gps.GPS(uart) # Use UART/pyserial diff --git a/examples/gps_simpletest.py b/examples/gps_simpletest.py index c7fb49f..72c9424 100644 --- a/examples/gps_simpletest.py +++ b/examples/gps_simpletest.py @@ -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(board.SCL, board.SDA) # Create a GPS module instance. gps = adafruit_gps.GPS(uart, debug=False) # Use UART/pyserial From 1d628c323b0b39bd6e6d8451fddd08c5e1856af4 Mon Sep 17 00:00:00 2001 From: Kattni Date: Wed, 29 Apr 2020 16:53:55 -0400 Subject: [PATCH 2/4] Fixing board.I2C() --- examples/gps_datalogging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gps_datalogging.py b/examples/gps_datalogging.py index c317d47..0f65005 100644 --- a/examples/gps_datalogging.py +++ b/examples/gps_datalogging.py @@ -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 = board.I2C(board.SCL, board.SDA) +# i2c = board.I2C() # Create a GPS module instance. gps = adafruit_gps.GPS(uart) # Use UART/pyserial From 026be6a6a04370ba937a099529a13150f7916595 Mon Sep 17 00:00:00 2001 From: Kattni Date: Wed, 29 Apr 2020 16:54:14 -0400 Subject: [PATCH 3/4] Update board.I2C() --- examples/gps_echotest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gps_echotest.py b/examples/gps_echotest.py index 4b599cb..326255e 100644 --- a/examples/gps_echotest.py +++ b/examples/gps_echotest.py @@ -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 = board.I2C(board.SCL, board.SDA) +# i2c = board.I2C() # Create a GPS module instance. gps = adafruit_gps.GPS(uart) # Use UART/pyserial From ebd10f1ad6c27e6ab59dab9f1d040d09478f9fe7 Mon Sep 17 00:00:00 2001 From: Kattni Date: Wed, 29 Apr 2020 16:54:36 -0400 Subject: [PATCH 4/4] Update board.I2C() --- examples/gps_simpletest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gps_simpletest.py b/examples/gps_simpletest.py index 72c9424..9c2e4dc 100644 --- a/examples/gps_simpletest.py +++ b/examples/gps_simpletest.py @@ -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 = board.I2C(board.SCL, board.SDA) +# i2c = board.I2C() # Create a GPS module instance. gps = adafruit_gps.GPS(uart, debug=False) # Use UART/pyserial