Skip to content

Instantly share code, notes, and snippets.

@jenschr
Created October 15, 2018 07:37
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save jenschr/474eeb27c1620d21db6247b4b024e760 to your computer and use it in GitHub Desktop.
void setup()
{
Serial.begin(9600);
pinMode(13, OUTPUT);
}
void loop()
{
/* send everything received from the hardware uart to usb serial & vv */
if (Serial.available() > 0) {
char ch = Serial.read();
Serial.print(ch);
digitalWrite(13,HIGH);
}
else
{
digitalWrite(13,LOW);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment