Skip to content

Instantly share code, notes, and snippets.

@njh
njh / readMacAddress.ino
Last active November 19, 2020 21:48
Arduino sketch to read the MAC address from a AT24MAC402
/*
Arduino Sketch that demonstrates reading the factory-programmed
EUI-48 MAC Address from a AT24MAC402 / AT24MAC602 Serial EEPROM
over TWI / I2C.
Product page: http://www.atmel.com/devices/AT24MAC402.aspx
Datasheet: http://www.atmel.com/images/atmel-8807-seeprom-at24mac402-602-datasheet.pdf
*/
#include <Wire.h>