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 16
16
#ifndef WipperSnapper_I2C_Driver_H
17
17
#define WipperSnapper_I2C_Driver_H
18
18
19
- #include " ../../../ wippersnapper/i2c/v1/i2c.pb.h"
19
+ #include " wippersnapper/i2c/v1/i2c.pb.h"
20
20
#include < Adafruit_Sensor.h>
21
21
#include < Arduino.h>
22
22
#include < Wire.h>
Original file line number Diff line number Diff line change 4
4
* Device driver implementation for the INA237 DC Current and Voltage Monitor
5
5
* (Avoids import conflict with INA260 typedef enum _mode etc)
6
6
*
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
+ *
7
15
*/
8
16
9
17
#include " WipperSnapper_I2C_Driver_INA237.h"
10
- #include " ../../../ Wippersnapper.h"
18
+ #include " Wippersnapper.h"
11
19
#include < Adafruit_INA237.h>
12
20
13
21
/* ******************************************************************************/
@@ -44,7 +52,6 @@ WipperSnapper_I2C_Driver_INA237::~WipperSnapper_I2C_Driver_INA237() {
44
52
bool WipperSnapper_I2C_Driver_INA237::begin () {
45
53
_ina237 = new Adafruit_INA237 ();
46
54
if (!_ina237->begin (_sensorAddress, _i2c)) {
47
- WS_DEBUG_PRINTLN (" INA237 failed to initialise!" );
48
55
return false ;
49
56
}
50
57
Original file line number Diff line number Diff line change 4
4
* Device driver implementation for the INA238 High-precision DC Current and
5
5
* Voltage Monitor (Avoids import conflict with INA260 typedef enum _mode etc)
6
6
*
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
+ *
7
15
*/
8
16
9
17
#include " WipperSnapper_I2C_Driver_INA238.h"
10
- #include " ../../../ Wippersnapper.h"
18
+ #include " Wippersnapper.h"
11
19
#include < Adafruit_INA238.h>
12
20
13
21
/* ******************************************************************************/
@@ -44,7 +52,6 @@ WipperSnapper_I2C_Driver_INA238::~WipperSnapper_I2C_Driver_INA238() {
44
52
bool WipperSnapper_I2C_Driver_INA238::begin () {
45
53
_ina238 = new Adafruit_INA238 ();
46
54
if (!_ina238->begin (_sensorAddress, _i2c)) {
47
- WS_DEBUG_PRINTLN (" INA238 failed to initialise!" );
48
55
return false ;
49
56
}
50
57
Original file line number Diff line number Diff line change 3
3
*
4
4
* Device driver implementation for the INA260 DC Current and Voltage Monitor
5
5
*
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
+ *
6
14
*/
7
15
8
16
#include " WipperSnapper_I2C_Driver_INA260.h"
9
- #include " ../../../ Wippersnapper.h"
17
+ #include " Wippersnapper.h"
10
18
#include < Adafruit_INA260.h>
11
19
12
20
/* ******************************************************************************/
@@ -43,7 +51,6 @@ WipperSnapper_I2C_Driver_INA260::~WipperSnapper_I2C_Driver_INA260() {
43
51
bool WipperSnapper_I2C_Driver_INA260::begin () {
44
52
_ina260 = new Adafruit_INA260 ();
45
53
if (!_ina260->begin (_sensorAddress, _i2c)) {
46
- WS_DEBUG_PRINTLN (" INA260 failed to initialise!" );
47
54
return false ;
48
55
}
49
56
// TODO: use setCalibration()
You can’t perform that action at this time.
0 commit comments