When we call the Serial.println
function in the sketch it print the output to Serial channel.
Is there a way to get the output later when the LilyPad is connected to a PC and save it to disk in PC?
You could add an SD Card and save data to that. Although it would be much simpler to use the onboard 512 bytes of EEPROM.
EEPROM.write(addr, val);
value = EEPROM.read(address);
Depending on your IO pins available, you could also add some extra EEPROM.