#include <EEPROM.h>
void setup() {
Serial.begin(115200);
// Uno has 1K of prom, the last 6 bytes are the serial number
// The starting address of the serial number is byte 1018
int unoSerial[6];
int i;
int startAddr=1018;
for (i = 0; i < 6; i++) {
unoSerial* = EEPROM.read(startAddr + i);*
- }*
_ Serial.print("Your Serial Number is:");_
- for (i = 0; i < 6; i = i + 1) {*
_ Serial.print(" ");_
_ Serial.print(unoSerial*, HEX);_
_ }_
_ Serial.println();_
_}_
void loop() {
_}_
_[/quote]*_
I'd like people to refrain from responding for 24 hours as I want to give other newbies like myself a chance at cracking the "code."
Change the printing of the array to this:
for (i = 0; i < 3; i = i + 1) {
Serial.print(" ");
Serial.print(unoSerial*,BYTE);*
- }*
- for (i = 3; i < 6; i = i + 1) {*
- Serial.print(" ");*
_ Serial.print(unoSerial*, HEX);_
_ }*_