From 20f797e36ca37d1e35fdde8c27469c00ae80fac0 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Wolle) Ewald" Date: Sun, 23 Oct 2022 15:40:12 +0200 Subject: [PATCH] Update Triggered.ino --- examples/Triggered/Triggered.ino | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/examples/Triggered/Triggered.ino b/examples/Triggered/Triggered.ino index 794c104..d7df6f2 100644 --- a/examples/Triggered/Triggered.ino +++ b/examples/Triggered/Triggered.ino @@ -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);