ina226 library with lgt8fx #115
Replies: 5 comments 10 replies
-
The new version of EEPROM library for LGT8Fx is here: https://github.com/SuperUserNameMan/lgt8fx/tree/master/lgt8f/libraries/E2PROM |
Beta Was this translation helpful? Give feedback.
-
thanks !!!! |
Beta Was this translation helpful? Give feedback.
-
it does not solve the problem for me, when I include the file ina226.cpp, arduino gives me the error "'class EEPROMClass' has no member named 'length'". |
Beta Was this translation helpful? Give feedback.
-
probably not having the eprom, the device does not work like a pro mini ............ |
Beta Was this translation helpful? Give feedback.
-
Try #include "INA226.h" // Include the header definition //
#include <Wire.h> // I2C Library definition //
#include "EEPROM.h" // Include the EEPROM library // <----- HERE
INA226_Class::INA226_Class() {} // Class constructor //
INA226_Class::~INA226_Class() {} // Unused class destructor // |
Beta Was this translation helpful? Give feedback.
-
ina226 cpp not work with lgt8.............'class EEPROMClass' has no member named 'length'
program line:
if ((_DeviceCountsizeof(ina))<EEPROM.length()) { // If there's space left in EEPROM //
EEPROM.put(_DeviceCountsizeof(ina),ina); // Add the structure
i try to replace arduino promini with lgt8ssop to make a voltampermeter win ina226 i2c sensor......but i received the message above !!!!!!!!!!!!!!!!
Beta Was this translation helpful? Give feedback.
All reactions