Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion examples/ina260_averaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import board
from adafruit_ina260 import INA260, AveragingCount

i2c = board.I2C()
i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
ina260 = INA260(i2c)

# Raise the averaging count to a larger number to smooth out the results
Expand Down
3 changes: 2 additions & 1 deletion examples/ina260_latch.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@

if __name__ == "__main__":
try:
i2c = board.I2C()
i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector
ina260 = INA260(i2c)
except RuntimeError as r_e:
# catch exception on init, no INA260 chip found
Expand Down
3 changes: 2 additions & 1 deletion examples/ina260_modes.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import board
from adafruit_ina260 import INA260, Mode

i2c = board.I2C()
i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
ina260 = INA260(i2c)

# trigger a sample
Expand Down
3 changes: 2 additions & 1 deletion examples/ina260_simpletest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
import board
import adafruit_ina260

i2c = board.I2C()
i2c = board.I2C() # uses board.SCL and board.SDA
# i2c = board.STEMMA_I2C() # For using the built-in STEMMA QT connector on a microcontroller
ina260 = adafruit_ina260.INA260(i2c)
while True:
print(
Expand Down