Skip to content

Instantly share code, notes, and snippets.

@esmarr58
Created October 31, 2017 23:17
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save esmarr58/3fd9843d505adf16b0190a2983b59658 to your computer and use it in GitHub Desktop.
Save esmarr58/3fd9843d505adf16b0190a2983b59658 to your computer and use it in GitHub Desktop.
void setup(){
Serial.begin(9600);
pinMode(13,OUTPUT);
}
void loop(){
}
void serialEvent( ) {
if(Serial.available() > 0 ){
char Dato = Serial.read();
if(Dato == 'A') digitalWrite(13,HIGH);
else if(Dato == 'B') digitalWrite(13,LOW);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment