diff --git a/README.md b/README.md index 6cb82fc..a50ec3d 100644 --- a/README.md +++ b/README.md @@ -32,10 +32,12 @@ This library only works on AVR Microcontroller. * Atmega328pb - 10 bytes * Atmega328p - 9 bytes * Atmega2560 - 9 bytes +* Attiny85 - 9 bytes ## Installation -* Install the library by [Importing the .zip library](https://www.arduino.cc/en/Guide/Libraries#toc4) using either the [master](https://github.com/ricaun/ArduinoUniqueID/archive/master.zip) or one of the [releases](https://github.com/ricaun/ArduinoUniqueID/releases) ZIP files. +* Install the library by [Using the Library Manager](https://www.arduino.cc/en/Guide/Libraries#toc3) +* **OR** by [Importing the .zip library](https://www.arduino.cc/en/Guide/Libraries#toc4) using either the [master](https://github.com/ricaun/ArduinoUniqueID/archive/1.0.3.zip) or one of the [releases](https://github.com/ricaun/ArduinoUniqueID/releases) ZIP files. ## Examples @@ -68,4 +70,13 @@ Print the hexadecimal bytes of the Unique Serial ID on the Stream. void UniqueIDdump(Stream); ``` +### Variable: UniqueID8 + +UniqueID8 has the last 8 bytes array of the Unique Serial ID. + +```c +for(size_t i = 0; i < 8; i++) + Serial.println(UniqueID8[i], HEX); +``` + Do you like this library? Please [star this project on GitHub](https://github.com/ricaun/ArduinoUniqueID/stargazers)! diff --git a/keywords.txt b/keywords.txt index 96e46c7..fe6fcad 100644 --- a/keywords.txt +++ b/keywords.txt @@ -18,4 +18,6 @@ UniqueIDdump KEYWORD2 # Constants (LITERAL1) ####################################### +UniqueID8 LITERAL1 UniqueID LITERAL1 +UniqueIDsize LITERAL1 diff --git a/library.properties b/library.properties index cc10bc9..73107ce 100644 --- a/library.properties +++ b/library.properties @@ -1,9 +1,9 @@ name=ArduinoUniqueID -version=1.0.2 +version=1.0.3 author=Luiz Henrique Cassettari maintainer=Luiz Henrique Cassettari -sentence=Arduino Unique Device ID Library. -paragraph=Arduino Unique Device ID Library. +sentence=Arduino Library to get the AVR microcontroler Unique ID / Manufacture Serial Number. +paragraph=The ArduinoUniqueID Library use the buildin feature to select the manufacture serial number from the microcontroler. Suported / Tested microcontroler: Atmega328pb, Atmega328p, Atmega2560 & Attiny85. category=Other url=https://github.com/ricaun/ArduinoUniqueID architectures=avr diff --git a/src/ArduinoUniqueID.h b/src/ArduinoUniqueID.h index 6cc5744..491bf22 100644 --- a/src/ArduinoUniqueID.h +++ b/src/ArduinoUniqueID.h @@ -8,6 +8,9 @@ #if __AVR_ARCH__ #include +#ifndef SIGRD +#define SIGRD 5 +#endif #else #error "ArduinoUniqueID only works on AVR Architecture" #endif