Fixed wrong shunt voltage reading
Some checks failed
Test compiling project / test (push) Failing after 2m24s
Some checks failed
Test compiling project / test (push) Failing after 2m24s
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user