Skip to content

Instantly share code, notes, and snippets.

@MKo-xx
Created December 25, 2010 10:14
Show Gist options
  • Save MKo-xx/754811 to your computer and use it in GitHub Desktop.
Save MKo-xx/754811 to your computer and use it in GitHub Desktop.
echo
void setup()
{
Serial.begin(9600);
}
void loop()
{
if (0 < Serial.available()) // See is there any coming data
{
char data = Serial.read(); // read first byte
Serial.println(data); // print data in HEX
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment