Last active
August 29, 2015 14:00
-
-
Save eraclitux/d89d9cb87491bb129910 to your computer and use it in GitHub Desktop.
Arduino sample code that sends back received chars.
This file contains hidden or 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
| /* | |
| Arduino sample code that sends back received chars | |
| */ | |
| int rbyte=0; | |
| void setup () { | |
| Serial.begin(9600); | |
| } | |
| void loop () { | |
| if (Serial.available() > 0) { | |
| rbyte=Serial.read(); | |
| Serial.write(rbyte); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment