Fixed wrong shunt voltage reading
Some checks failed
Test compiling project / test (push) Failing after 2m24s

This commit is contained in:
2025-03-23 17:59:43 +01:00
parent 2fa4b0761b
commit 67e9ae1bca
5 changed files with 32 additions and 7 deletions

View File

@@ -7,6 +7,7 @@
#define REGISTER_READ_VIN 0x88
#define REGISTER_READ_VSHUNT 0xD1
#define REGISTER_CONFIGURATION 0xD0
#define REGISTER_READ_IIN 0x89
enum AveragingMode {
averages_1 = B000,
@@ -32,7 +33,7 @@ enum ConversionTime {
class INA233{
public:
String print_device_number();
String get_device_model();
INA233(uint8_t addr, TwoWire* wire = &Wire);
bool begin(const uint8_t sda, const uint8_t scl);
@@ -46,6 +47,8 @@ class INA233{
uint16_t getConfigRegister();
void reset();
bool isConnected(void);
private: