mirror of
https://github.com/meshcore-dev/MeshCore.git
synced 2026-04-20 22:13:47 +00:00
Merge pull request #2075 from pcmoore/working-ina3221
RFE: allow for INA3221 macro overrides in platform.io files
This commit is contained in:
commit
612aa66fc8
1 changed files with 6 additions and 0 deletions
|
|
@ -62,9 +62,15 @@ LPS22HBClass LPS22HB(*TELEM_WIRE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ENV_INCLUDE_INA3221
|
#if ENV_INCLUDE_INA3221
|
||||||
|
#ifndef TELEM_INA3221_ADDRESS
|
||||||
#define TELEM_INA3221_ADDRESS 0x42 // INA3221 3 channel current sensor I2C address
|
#define TELEM_INA3221_ADDRESS 0x42 // INA3221 3 channel current sensor I2C address
|
||||||
|
#endif
|
||||||
|
#ifndef TELEM_INA3221_SHUNT_VALUE
|
||||||
#define TELEM_INA3221_SHUNT_VALUE 0.100 // most variants will have a 0.1 ohm shunts
|
#define TELEM_INA3221_SHUNT_VALUE 0.100 // most variants will have a 0.1 ohm shunts
|
||||||
|
#endif
|
||||||
|
#ifndef TELEM_INA3221_NUM_CHANNELS
|
||||||
#define TELEM_INA3221_NUM_CHANNELS 3
|
#define TELEM_INA3221_NUM_CHANNELS 3
|
||||||
|
#endif
|
||||||
#include <Adafruit_INA3221.h>
|
#include <Adafruit_INA3221.h>
|
||||||
static Adafruit_INA3221 INA3221;
|
static Adafruit_INA3221 INA3221;
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue