Arduino - How to Save an Int into EEPROM

preview_player
Показать описание
Learn how to save an Int variable into the EEPROM of your Arduino. To do that you will need to split the integer into multiple bytes, and store each byte on a different address.

0:00 Intro
0:40 How to store an Int into EEPROM
2:07 Check how many bytes in a data type
3:03 Write Int into EEPROM
6:41 Read Int from EEPROM
8:34 Test the code and recap
9:41 Improve the EEPROM functions
10:56 Outro

Рекомендации по теме
Комментарии
Автор

easy to understand thank you for video

thanatlikitchontarn
Автор

Man that's one awesome video. You explained that verry well and well understandable! Great video

amandaschulze
Автор

thank you, my friend, you saved my life :)

rafaelcosta
Автор

Hi, thanks for explaining in depth, how to read and write to EEPROM by manually shifting the bits, without relaying on predefined arduino functions. I have a question if I could replicate the procedure and store 4 byte floats? Thank you.

jhengineering
Автор

How do I need to shift when I want to use longs and doubles?

lobmati
Автор

how to read and write a long integer in EEPROM?

alvinkuhutan
Автор

If you can't store values over 32768 without it being negative, make sure you're using an unsigned integer!

verlidesouza
Автор

is there some example on how to alter your code in order to save and read more than 2 bytes? I need 4 bytes to save a big number. your example works really well, but I can't find out how to change the code to save and read 4 bytes instead of just 2

Reaching
Автор

Nice video, May I know what is mean by address +1?

kimvuivoon
Автор

Or just use the put() and get() functions

adrianjosol