You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies if this is the wrong place for this. I am trying to compile the example code that ran on my Uno over to an MKR 1010 but now getting compile errors. Specifically…
/Users/adam/Dropbox (Personal)/Arduino/libraries/ZMPT101B/src/ZMPT101B.cpp: In member function 'float ZMPT101B::getRmsVoltage(uint8_t)':
/Users/adam/Dropbox (Personal)/Arduino/libraries/ZMPT101B/src/ZMPT101B.cpp:60:55: error: 'ADC_SCALE' was not declared in this scope
readingVoltage += sqrt(Vsum / measurements_count) / ADC_SCALE * VREF * sensitivity;
^~~~~~~~~
/Users/adam/Dropbox (Personal)/Arduino/libraries/ZMPT101B/src/ZMPT101B.cpp:60:67: error: 'VREF' was not declared in this scope
readingVoltage += sqrt(Vsum / measurements_count) / ADC_SCALE * VREF * sensitivity;
^~~~
Any thoughts as to what is going on?
The text was updated successfully, but these errors were encountered:
Apologies if this is the wrong place for this. I am trying to compile the example code that ran on my Uno over to an MKR 1010 but now getting compile errors. Specifically…
Any thoughts as to what is going on?
The text was updated successfully, but these errors were encountered: