Pages: [1]   Go Down
Author Topic: How do you write or store values in the flash memory?  (Read 910 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Karma: 0
Posts: 31
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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!
« Last Edit: November 13, 2013, 06:36:14 am by tiestobob » Logged

Global Moderator
Online Online
Shannon Member
Karma: 227
Posts: 14018
In theory there is no difference between theory and practice, however in practice there are many...
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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 -,77.0.html -
(Please do not PM for private consultancy)

Offline Offline
Full Member
Karma: 1
Posts: 141
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The EEPROM library is included in the arduino IDE. Include the library to your code with
#include <EEPROM.h>
Look at:


My blog about arduino and Linux themes:

Pages: [1]   Go Up
Jump to: