Unofficial Nextion/TJC User Forum

Eeprom of nextion enhanced series

Is there any way to write in to eeprom of nextion enhanced series from arduino? Using itead arduino lib

The wept and rept commands allow bulk writing and reading of byte streams to and from the eeprom over the serial connection. Take care, Nextion firmware does no wear leveling, so individual flash cells might not longer work after ~10000 write cycles. Read cycles do not wear them out and are unlimited. There is no “ready to use” function in the lib, as far as i know (I never use it), you’ll have to write a few lines of code by yourself. Here is the symbolic code for writing 64 bytes at eeprom address 128:
NexSerial.print(“wept 128,64\xFF\xFF\xFF”);
delay(5);
wait for Nextion returning “0xFE0xFF0xFF0xFF”
NexSerial.write(mybytes,64);
wait for Nextion returning “0xFD0xFF0xFF0xFF”
… and you are done.

1 Like

Ok thanks got it
So it’s not lib fumction

I was able to do it with sendCommand("").
Thanks for the clue


This forum is in no way affiliated with NEXTION®, ITEAD STUDIO®, TJC®, or anyone else really. All product names, logos, and brands are property of their respective owners. All company, product, and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement from the respective rights holder(s).