Created
December 25, 2010 10:14
-
-
Save MKo-xx/754811 to your computer and use it in GitHub Desktop.
echo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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