File tree Expand file tree Collapse file tree 4 files changed +28
-7
lines changed
src/components/i2c/drivers Expand file tree Collapse file tree 4 files changed +28
-7
lines changed Original file line number Diff line number Diff line change 1616#ifndef WipperSnapper_I2C_Driver_H
1717#define WipperSnapper_I2C_Driver_H
1818
19- #include " ../../../ wippersnapper/i2c/v1/i2c.pb.h"
19+ #include " wippersnapper/i2c/v1/i2c.pb.h"
2020#include < Adafruit_Sensor.h>
2121#include < Arduino.h>
2222#include < Wire.h>
Original file line number Diff line number Diff line change 44 * Device driver implementation for the INA237 DC Current and Voltage Monitor
55 * (Avoids import conflict with INA260 typedef enum _mode etc)
66 *
7+ * Adafruit invests time and resources providing this open source code,
8+ * please support Adafruit and open-source hardware by purchasing
9+ * products from Adafruit!
10+ *
11+ * Copyright (c) Tyeth Gundry 2025 for Adafruit Industries.
12+ *
13+ * MIT license, all text here must be included in any redistribution.
14+ *
715 */
816
917#include " WipperSnapper_I2C_Driver_INA237.h"
10- #include " ../../../ Wippersnapper.h"
18+ #include " Wippersnapper.h"
1119#include < Adafruit_INA237.h>
1220
1321/* ******************************************************************************/
@@ -44,7 +52,6 @@ WipperSnapper_I2C_Driver_INA237::~WipperSnapper_I2C_Driver_INA237() {
4452bool WipperSnapper_I2C_Driver_INA237::begin () {
4553 _ina237 = new Adafruit_INA237 ();
4654 if (!_ina237->begin (_sensorAddress, _i2c)) {
47- WS_DEBUG_PRINTLN (" INA237 failed to initialise!" );
4855 return false ;
4956 }
5057
Original file line number Diff line number Diff line change 44 * Device driver implementation for the INA238 High-precision DC Current and
55 * Voltage Monitor (Avoids import conflict with INA260 typedef enum _mode etc)
66 *
7+ * Adafruit invests time and resources providing this open source code,
8+ * please support Adafruit and open-source hardware by purchasing
9+ * products from Adafruit!
10+ *
11+ * Copyright (c) Tyeth Gundry 2025 for Adafruit Industries.
12+ *
13+ * MIT license, all text here must be included in any redistribution.
14+ *
715 */
816
917#include " WipperSnapper_I2C_Driver_INA238.h"
10- #include " ../../../ Wippersnapper.h"
18+ #include " Wippersnapper.h"
1119#include < Adafruit_INA238.h>
1220
1321/* ******************************************************************************/
@@ -44,7 +52,6 @@ WipperSnapper_I2C_Driver_INA238::~WipperSnapper_I2C_Driver_INA238() {
4452bool WipperSnapper_I2C_Driver_INA238::begin () {
4553 _ina238 = new Adafruit_INA238 ();
4654 if (!_ina238->begin (_sensorAddress, _i2c)) {
47- WS_DEBUG_PRINTLN (" INA238 failed to initialise!" );
4855 return false ;
4956 }
5057
Original file line number Diff line number Diff line change 33 *
44 * Device driver implementation for the INA260 DC Current and Voltage Monitor
55 *
6+ * Adafruit invests time and resources providing this open source code,
7+ * please support Adafruit and open-source hardware by purchasing
8+ * products from Adafruit!
9+ *
10+ * Copyright (c) Tyeth Gundry 2025 for Adafruit Industries.
11+ *
12+ * MIT license, all text here must be included in any redistribution.
13+ *
614 */
715
816#include " WipperSnapper_I2C_Driver_INA260.h"
9- #include " ../../../ Wippersnapper.h"
17+ #include " Wippersnapper.h"
1018#include < Adafruit_INA260.h>
1119
1220/* ******************************************************************************/
@@ -43,7 +51,6 @@ WipperSnapper_I2C_Driver_INA260::~WipperSnapper_I2C_Driver_INA260() {
4351bool WipperSnapper_I2C_Driver_INA260::begin () {
4452 _ina260 = new Adafruit_INA260 ();
4553 if (!_ina260->begin (_sensorAddress, _i2c)) {
46- WS_DEBUG_PRINTLN (" INA260 failed to initialise!" );
4754 return false ;
4855 }
4956 // TODO: use setCalibration()
You can’t perform that action at this time.
0 commit comments