EEprom help #484
Answered
by
MYCAMEL222
MYCAMEL222
asked this question in
Q&A
EEprom help
#484
-
I need to be able to write a number like 235876 to eeprom and and bring it back on a reboot. I think I need to break the number up into 23 58 76 and write those into 3 consecutive addresses. Then read them back and put them back together by something like ..........230000+5800+76 Tell me there is an easier way please! Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
MYCAMEL222
Feb 13, 2022
Replies: 2 comments
-
Break the number into bytes, using shifts and bit masks. E.g.
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks! Looks easier than what I was trying to do... |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MYCAMEL222
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks!
Looks easier than what I was trying to do...