Skip to content

Commit

Permalink
Update Triggered.ino
Browse files Browse the repository at this point in the history
  • Loading branch information
wollewald authored Oct 23, 2022
1 parent ebcd685 commit 20f797e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions examples/Triggered/Triggered.ino
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,10 @@
#define I2C_ADDRESS 0x40

/* There are several ways to create your INA226 object:
* INA226_WE ina226 = INA226_WE() -> uses Wire / I2C Address = 0x40
* INA226_WE ina226 = INA226_WE(ICM20948_ADDR) -> uses Wire / I2C_ADDRESS
* INA226_WE ina226 = INA226_WE(&wire2) -> uses the TwoWire object wire2 / I2C_ADDRESS
* INA226_WE ina226 = INA226_WE(&wire2, I2C_ADDRESS) -> all together
* Successfully tested with two I2C busses on an ESP32
* INA226_WE ina226 = INA226_WE(); -> uses I2C Address = 0x40 / Wire
* INA226_WE ina226 = INA226_WE(I2C_ADDRESS);
* INA226_WE ina226 = INA226_WE(&Wire); -> uses I2C_ADDRESS = 0x40, pass any Wire Object
* INA226_WE ina226 = INA226_WE(&Wire, I2C_ADDRESS);
*/
INA226_WE ina226 = INA226_WE(I2C_ADDRESS);

Expand Down

0 comments on commit 20f797e

Please sign in to comment.