Please can someone help, I am trying to display the UniqueID of an Arduino to the LCD, but can't for the life of me remember how to make the serial number available as a constant I can call outside of the Void Setup.
Many thanks for any help,
//
// ArduinoUniqueID.ino
//
// Example shows the UniqueID on the Serial Monitor.
//
#include <ArduinoUniqueID.h>
void setup()
{
Serial.begin(115200);
UniqueIDdump(Serial);
Serial.print("UniqueID: ");
for (size_t i = 0; i < UniqueIDsize; i++)
{
if (UniqueID[i] < 0x10)
Serial.print("0");
Serial.print(UniqueID[i], HEX);
Serial.print(" ");
}
Serial.println();
}
void loop()
{
Serial.println(UniqueID);
}