nimaltd / ee24

24xx EEPROM library for stm32 HAL
GNU General Public License v3.0
149 stars 41 forks source link

Lib not read or write value #5

Closed leech001 closed 4 years ago

leech001 commented 4 years ago

Hi, i try this code

if (ee24_isConnected()) {
        uint8_t memory_ready = 111;
        ee24_write(0, &memory_ready, sizeof(memory_ready), 100);
        ee24_read(0, &memory_ready, sizeof(memory_ready), 100);
    }

after finish running code value of memory_ready is '0'. But all function return is TRUE.

Please help.

nimaltd commented 4 years ago

Hello. It's work fine I check it now. and its ok.

leech001 commented 4 years ago

Excuse me. You were right. It turned out to be a bad chip, replaced and everything worked. If there is time, please add functions for writing different types of data (uint_16, uint_32, double ...).

nimaltd commented 4 years ago

You can convert anythings to (uint8_t*)