Serial communication in test

Hi,
I’m trying to perform a test on an embedded device (arduino uno).
I’ve a simple sketch that do two things:

  • turn on led 13 when receive “ON” on serial port
  • turn off led 13 when receive “OFF” on serial port

What I’m trying to do in the test file is to send “ON” on the serial bus and then verify if the pin 13 is HIGH ( with digitalRead() ). I’ve not found any example, so I’m asking for help.
Thank you very much

1 Like