Add info on sketch EEPROM use to README.md

This commit is contained in:
Scott Allen 2017-12-01 16:57:15 -05:00
parent 6360eb2b37
commit b159b3751b
1 changed files with 4 additions and 0 deletions

View File

@ -107,6 +107,10 @@ Sample sketches have been included with the library as examples of how to use it
More information on writing sketches for the Arduboy can be found in the [Arduboy Community Forum](http://community.arduboy.com/).
### Using EEPROM in a sketch
The Arduboy2 library reserves an area at the start of EEPROM for storing system information, such as the current audio mute state and the Unit Name and Unit ID. A sketch **must not** use this reserved area for its own purposes. A sketch may use any EEPROM past this reserved area. The first EEPROM address available for sketch use is given as the defined value *EEPROM_STORAGE_SPACE_START*
### Audio control functions
The library includes an Arduboy2Audio class. This class provides functions to enable and disable (mute) sound and also save the current mute state so that it remains in effect over power cycles and after loading a different sketch. It doesn't contain anything to actually produce sound.