Seithan / EasyNextionLibrary

A simple library for Nextion display that uses only four functions. You can easily benefit from Nextion's wide range of features and advantages in just a few easy steps. The library uses a custom protocol that can prove to be a powerful tool for advanced users as it can be easily modified to meet one’s needs.
MIT License
116 stars 29 forks source link

Read/Write EEProm #62

Closed Grandpa-G closed 1 year ago

Grandpa-G commented 1 year ago

Can you give and example of how to read and write an integer into eeprom? I would prefer the value come back to the arduino to process but I will take anything.

Seithan commented 1 year ago

Hello @Grandpa-G ,

This is not a library issue.

Save the value you want into a variable and then store it to EEPROM with the eeprom commands. More details here

If your value exceeds 255, see here how to do that

Grandpa-G commented 1 year ago

The first link seems to talk about an eeprom in the Arduino. I am asking about how to save in the Nextion eeprom? I see the wepo and repo Nextion commands, but I don't understand how to use your library to use them I think I understand writing with the writeStr function, but how do I read it back, readStr? I just get a value of ERROR.

Grandpa-G commented 1 year ago

Maybe I will switch to Arduino eeprom. Thanks.

Seithan commented 1 year ago

It is better to store the values that you use for calculations on Arduino and then display the risults on Nextion