Skip to content

EEPROM goes max value at esp32 wroom #82

@fungreenfox

Description

@fungreenfox

#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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions