Skip to content

Commit 08618b1

Browse files
committed
Attiny85 Suport
Add suport to attiny85 Add UniqueID8
1 parent 072bcbd commit 08618b1

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@ This library only works on AVR Microcontroller.
3232
* Atmega328pb - 10 bytes
3333
* Atmega328p - 9 bytes
3434
* Atmega2560 - 9 bytes
35+
* Attiny85 - 9 bytes
3536

3637
## Installation
3738

38-
* 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.
39+
* Install the library by [Using the Library Manager](https://www.arduino.cc/en/Guide/Libraries#toc3)
40+
* **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.
3941

4042
## Examples
4143

@@ -68,4 +70,13 @@ Print the hexadecimal bytes of the Unique Serial ID on the Stream.
6870
void UniqueIDdump(Stream);
6971
```
7072
73+
### Variable: UniqueID8
74+
75+
UniqueID8 has the last 8 bytes array of the Unique Serial ID.
76+
77+
```c
78+
for(size_t i = 0; i < 8; i++)
79+
Serial.println(UniqueID8[i], HEX);
80+
```
81+
7182
Do you like this library? Please [star this project on GitHub](https://github.com/ricaun/ArduinoUniqueID/stargazers)!

keywords.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@ UniqueIDdump KEYWORD2
1818
# Constants (LITERAL1)
1919
#######################################
2020

21+
UniqueID8 LITERAL1
2122
UniqueID LITERAL1
23+
UniqueIDsize LITERAL1

library.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name=ArduinoUniqueID
2-
version=1.0.2
2+
version=1.0.3
33
author=Luiz Henrique Cassettari
44
maintainer=Luiz Henrique Cassettari <ricaun@gmail.com>
5-
sentence=Arduino Unique Device ID Library.
6-
paragraph=Arduino Unique Device ID Library.
5+
sentence=Arduino Library to get the AVR microcontroler Unique ID / Manufacture Serial Number.
6+
paragraph=The ArduinoUniqueID Library use the buildin feature to select the manufacture serial number from the microcontroler. Suported / Tested microcontroler: Atmega328pb, Atmega328p, Atmega2560 & Attiny85.
77
category=Other
88
url=https://github.com/ricaun/ArduinoUniqueID
99
architectures=avr

src/ArduinoUniqueID.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88

99
#if __AVR_ARCH__
1010
#include <avr/boot.h>
11+
#ifndef SIGRD
12+
#define SIGRD 5
13+
#endif
1114
#else
1215
#error "ArduinoUniqueID only works on AVR Architecture"
1316
#endif

0 commit comments

Comments
 (0)