ai-esp32-rotary-encoder icon indicating copy to clipboard operation
ai-esp32-rotary-encoder copied to clipboard

EEPROM goes max value at esp32 wroom

Open fungreenfox opened this issue 7 months ago • 0 comments

#include "AiEsp32RotaryEncoder.h" #include <EEPROM.h> byte PreFIX = 0; byte Fixer, Prefix;

EEPROM.writeByte(PreFIX, Fixer); PreFIX += sizeof(byte); EEPROM.commit();

Having the script to store a byte to EEPROM and a photodiode to take intervals every 500ms. Rotary potmeter to save the byte with. When that byte is stored, it is always readen as 128 in value.

If the store rutine is moved to its own script, with no other functions in, it will store and read correct value.

Are there any issues with AiEsp32RotaryEncoder.h and EEPROM.h?

fungreenfox avatar Jul 18 '24 08:07 fungreenfox