Last active
January 24, 2017 08:51
-
-
Save BraveTea/4bdc3961c1af3f70aea9b3db39b84873 to your computer and use it in GitHub Desktop.
Code Library: S : Serial : Comma Separator + Echo (Delimiter)
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
byte byteRead; | |
void setup() | |
{ | |
Serial.begin(9600); | |
} | |
void loop() | |
{ | |
if (Serial.available()) | |
{ | |
byteRead = Serial.read(); | |
if (byteRead==44) | |
{ | |
Serial.println(); | |
} | |
else | |
{ | |
Serial.write(byteRead); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment