Difference between revisions of "Memory"
From Gamebuino Wiki
(Added EEPROM) |
(Link with no title remove) |
||
Line 2: | Line 2: | ||
Here is listed and explained of some useful Arduino storage keyword, classes, and function. | Here is listed and explained of some useful Arduino storage keyword, classes, and function. | ||
− | See [http://gamebuino.com/wiki/index.php?title=Reference] for all Gamebuino specific functions. | + | See [http://gamebuino.com/wiki/index.php?title=Reference Reference] for all Gamebuino specific functions. |
== EEPROM == | == EEPROM == |
Revision as of 2016-11-27T00:21:20
Here is listed and explained of some useful Arduino storage keyword, classes, and function.
See Reference for all Gamebuino specific functions.
EEPROM
You need to use #include <EEPROM.h>
for these functions
- EEPROM.read(adress) //int
- EEPROM.write(adress, value) //int, byte
- EEPROM.update(adress, value) //int, byte
- EEPROM.get(adress, data) //int, primitive type (eg. float) or a custom struct
- EEPROM.put(adress, data) //int, primitive type (eg. float) or a custom struct