Skip to content

Commit 636d658

Browse files
committed
- Support of more boards
- Added documentation for installation
1 parent a85d380 commit 636d658

File tree

2 files changed

+42
-7
lines changed

2 files changed

+42
-7
lines changed

EEPROMex.h

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,31 +28,35 @@
2828
#include <inttypes.h>
2929
#include <avr/eeprom.h>
3030

31-
// Boards with ATmega328, Duemilanove, Uno, UnoSMD, Lilypad - 1024 bytes (1 kilobyte)
32-
// Boards with ATmega1280 or 2560, Arduino Mega series – 4096 bytes (4 kilobytes)
33-
// Boards with ATmega168, Lilypad, old Nano, Diecimila – 512 bytes (1/2 kilobyte)
3431

3532
#define EEPROMSizeATmega168 512
3633
#define EEPROMSizeATmega328 1024
3734
#define EEPROMSizeATmega1280 4096
3835
#define EEPROMSizeATmega32u4 1024
3936
#define EEPROMSizeAT90USB1286 4096
4037
#define EEPROMSizeMK20DX128 2048
38+
#define EEPROMSizeMK20DX256 2048
39+
#define EEPROMSizeATSAMD21G18 16384
4140

4241
#define EEPROMSizeUno EEPROMSizeATmega328
4342
#define EEPROMSizeUnoSMD EEPROMSizeATmega328
4443
#define EEPROMSizeLilypad EEPROMSizeATmega328
4544
#define EEPROMSizeDuemilanove EEPROMSizeATmega328
45+
#define EEPROMSizePro EEPROMSizeATmega328
46+
#define EEPROMSizeFio EEPROMSizeATmega328
4647
#define EEPROMSizeMega EEPROMSizeATmega1280
4748
#define EEPROMSizeDiecimila EEPROMSizeATmega168
4849
#define EEPROMSizeNano EEPROMSizeATmega168
4950
#define EEPROMSizeTeensy2 EEPROMSizeATmega32u4
5051
#define EEPROMSizeLeonardo EEPROMSizeATmega32u4
5152
#define EEPROMSizeMicro EEPROMSizeATmega32u4
53+
#define EEPROMSizeEsplora EEPROMSizeATmega32u4
5254
#define EEPROMSizeYun EEPROMSizeATmega32u4
55+
#define EEPROMSizeTre EEPROMSizeATmega32u4
56+
#define EEPROMSizeZero EEPROMSizeATSAMD21G18
5357
#define EEPROMSizeTeensy2pp EEPROMSizeAT90USB1286
5458
#define EEPROMSizeTeensy3 EEPROMSizeMK20DX128
55-
59+
#define EEPROMSizeTeensy31 EEPROMSizeMK20DX256
5660
class EEPROMClassEx
5761
{
5862

README.md

Lines changed: 34 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,33 @@ The EEPROMex library is an extension of the standard Arduino EEPROM library. It
1111
* Enabling write limitation: In theory one can burn out a memory cell in a few minutes: a write/erase cycle takes approximately 4 ms, so writing 100.000 times to a single cell takes 6 1/2 min. Limiting the number of writes during the debug phase helps prevent this.
1212
* Debugging of writing out of memory range.
1313

14-
You can download the library here:
15-
[http://thijs.elenbaas.net/downloads/?did=3](http://thijs.elenbaas.net/downloads)
16-
14+
1715
And find detailed explanation and samples of the functionality here:
1816
[http://thijs.elenbaas.net/2012/07/extended-eeprom-library-for-arduino](http://thijs.elenbaas.net/2012/07/extended-eeprom-library-for-arduino)
1917

18+
## Downloading
19+
20+
This package can be downloaded in different manners
21+
22+
23+
- The Arduino Library Manager: [see here how to use it](http://www.arduino.cc/en/guide/libraries#toc3).
24+
- The PlatformIO package manager: [see here how to use it](http://www.ikravets.com/computer-life/platformio/2014/10/07/integration-of-platformio-library-manager-to-arduino-and-energia-ides).
25+
- By directly loading fetching the Archive from GitHub:
26+
1. Go to [https://github.com/thijse/Arduino-EEPROMEx](https://github.com/thijse/Arduino-EEPROMEx)
27+
2. Click the DOWNLOAD ZIP button in the panel on the
28+
3. Rename the uncompressed folder **Arduino-EEPROMEx-master** to **EEPROMEx**.
29+
4. You may need to create the libraries subfolder if its your first library.
30+
5. Place the **EEPROMEx** library folder in your **arduinosketchfolder/libraries/** folder.
31+
5. Restart the IDE.
32+
6. For more information, [read this extended manual](http://thijs.elenbaas.net/2012/07/installing-an-arduino-library/)
33+
- If you want to have a package that includes all referenced libraries, use the pre-packaged library
34+
1. Download the package as a zipfile [here](https://github.com/thijse/Zipballs/blob/master/EEPROMEx/EEPROMEx.zip?raw=true) or as a tarball [here ](https://github.com/thijse/Zipballs/blob/master/EEPROMEx/EEPROMEx.tar.gz?raw=true).
35+
2. Copy the folders inside the **libraries** folder to you your **arduinosketchfolder/libraries/** folder.
36+
3. Restart the IDE.
37+
3. For more information, [read this extended manual](http://thijs.elenbaas.net/2012/07/installing-an-arduino-library/)
38+
39+
40+
2041
### Using different data formats
2142

2243
The aim of the library is to also support other standard data types: it currently implements writing and reading to int, long, float and double.
@@ -137,3 +158,13 @@ All of the read/write functions make sure the EEPROM is ready to be accessed. Si
137158
```
138159
bool isReady();
139160
```
161+
162+
## On using and modifying libraries
163+
164+
- [http://www.arduino.cc/en/Main/Libraries](http://www.arduino.cc/en/Main/Libraries)
165+
- [http://www.arduino.cc/en/Reference/Libraries](http://www.arduino.cc/en/Reference/Libraries)
166+
167+
168+
## Copyright
169+
170+
EEPROMEx is provided Copyright © 2013,2014,2015 under LGPL License.

0 commit comments

Comments
 (0)