A
A
artanets2014-08-05 16:15:16
Arduino
artanets, 2014-08-05 16:15:16

Can an arduino remember information after being turned off (used as a counter)?

For example, arduino runs a loop where each loop adds one to some number. Can he keep this number in memory even after a complete power outage, then continue counting from the point of stop and not from the beginning.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
Egor, 2014-08-05
@artanets

void EEPROM.write(address, value)
Description:
Writes a byte to non-volatile memory
Parameters:
address: sequence number of the memory cell to write - from 0 to 511 (int)
value: byte to write - from 0 to 255 (byte)

G
gleb_kudr, 2014-08-05
@gleb_kudr

Maybe.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question