Skip to content

Instantly share code, notes, and snippets.

@BraveTea
Last active January 24, 2017 08:51
Show Gist options
  • Save BraveTea/4bdc3961c1af3f70aea9b3db39b84873 to your computer and use it in GitHub Desktop.
Save BraveTea/4bdc3961c1af3f70aea9b3db39b84873 to your computer and use it in GitHub Desktop.
Code Library: S : Serial : Comma Separator + Echo (Delimiter)
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