Created
August 29, 2018 14:55
-
-
Save matthijskooijman/89e3fd69aaf714466524eb93f7197260 to your computer and use it in GitHub Desktop.
Read AVR / Atmega2560 signature byte area; signature is at addresses 0, 2, 4, calibration byte is at address 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <avr/boot.h> | |
void setup() { | |
Serial.begin(115200); | |
// put your setup code here, to run once: | |
for (uint8_t i = 0; i < 16; ++i) { | |
Serial.print(i); | |
Serial.print(": "); | |
Serial.println(boot_signature_byte_get(i), HEX); | |
} | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment