Go Down

Topic: Time stamping events, which end of the communication should do it? (Read 1 time) previous topic - next topic


Really basic storage, maybe the last 5.
It prints to LCD

How does retrieval work with EEPROM?
Plug it into a PC, open IDE, and serial.print out the buffer or something like that?


OK, so you can store the text in eeprom if you want; takes a bit more space.

You can implement a standard serial communication implementation to receive a command and react on the command.

Code: [Select]

void loop()
  int cmd = Serial.read();
  if(cmd == 'L' || cmd == 'L')
    // read data from eeprom

    // send to PC

  // other code

Note that the code does not use Serial.available(); if no data to read, return value of Serial.read() equals -1 and hence will not match 'L' or 'l'.
If you understand an example, use it.
If you don't understand an example, don't use it.

Electronics engineer by trade, software engineer by profession. Trying to get back into electronics after 15 years absence.

Go Up