File tree Expand file tree Collapse file tree 5 files changed +10
-5
lines changed Expand file tree Collapse file tree 5 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 55import board
66from adafruit_lps35hw import LPS35HW , DataRate
77
8- i2c = board .I2C ()
8+ i2c = board .I2C () # uses board.SCL and board.SDA
9+ # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910lps = LPS35HW (i2c )
1011
1112lps .data_rate = DataRate .ONE_SHOT
Original file line number Diff line number Diff line change 66import adafruit_lps35hw
77
88
9- i2c = board .I2C ()
9+ i2c = board .I2C () # uses board.SCL and board.SDA
10+ # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
1011lps = adafruit_lps35hw .LPS35HW (i2c )
1112
1213lps .low_pass_enabled = True
Original file line number Diff line number Diff line change 55import board
66import adafruit_lps35hw
77
8- i2c = board .I2C ()
8+ i2c = board .I2C () # uses board.SCL and board.SDA
9+ # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910lps = adafruit_lps35hw .LPS35HW (i2c )
1011
1112# You may need to adjust the threshold to something closer
Original file line number Diff line number Diff line change 55import board
66import adafruit_lps35hw
77
8- i2c = board .I2C ()
8+ i2c = board .I2C () # uses board.SCL and board.SDA
9+ # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910lps = adafruit_lps35hw .LPS35HW (i2c )
1011
1112# set the current pressure as zero hPa and make measurements
Original file line number Diff line number Diff line change 55import board
66import adafruit_lps35hw
77
8- i2c = board .I2C ()
8+ i2c = board .I2C () # uses board.SCL and board.SDA
9+ # i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
910lps = adafruit_lps35hw .LPS35HW (i2c )
1011
1112while True :
You can’t perform that action at this time.
0 commit comments