Skip to content

Instantly share code, notes, and snippets.

@lomassubedi
Last active August 23, 2022 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lomassubedi/f94440e7903e6d8e63623d2c32f13b56 to your computer and use it in GitHub Desktop.
Save lomassubedi/f94440e7903e6d8e63623d2c32f13b56 to your computer and use it in GitHub Desktop.
#define BAUD 115200UL
void setup() {
// put your setup code here, to run once:
Serial.begin(BAUD);
}
void loop() {
if(Serial.available() > 0) {
while(Serial.available() > 0) {
Serial.write(Serial.read());
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment