Arduino Forum
>
Using Arduino
>
Storage
>
How do you write or store values in the flash memory?
Print
Go Down
Pages:
[1]
Topic: How do you write or store values in the flash memory?
(Read 2201 times)
previous topic
-
next topic
tiestobob
Guest
How do you write or store values in the flash memory?
Nov 13, 2013, 12:27 pm
Last Edit
: Nov 13, 2013, 12:36 pm by tiestobob
Reason
: 1
I want to store a value into the onboard flash memory of my arduino and then my void_loop() will check this value in memory and do things accordingly. How to do this? I need the value to be there even when power is off.
EDIT: Nevermind, sorry!
robtillaart
Global Moderator
Brattain Member
Posts: 19,694
Karma: 1164
[add]
In theory there is no difference between theory and practice, however in practice there are many...
Re: How do you write or store values in the flash memory?
#1
Nov 13, 2013, 05:23 pm
You can write values to EEPROM with avrdude.exe which is part of the Arduino distribution.
Your program (in FLASH) can check it.
maybe that suits your need?
Rob Tillaart
Nederlandse sectie -
http://arduino.cc/forum/index.php/board,77.0.html
-
(Please do not PM for private consultancy)
Elektrix
Full Member
Posts: 149
Karma: 2
[add]
http://heliosoph.mit-links.info
Re: How do you write or store values in the flash memory?
#2
Nov 13, 2013, 08:17 pm
The EEPROM library is included in the arduino IDE. Include the library to your code with
Code:
[Select]
#include <EEPROM.h>
Look at:
http://arduino.cc/en/Reference/EEPROM
Elektrix
My blog about arduino and Linux themes:
http://heliosoph.mit-links.info/
Print
Go Up
Pages:
[1]
Loading...