Created
October 31, 2017 23:13
-
-
Save esmarr58/174976a09d09b4dc5a4a77316d6c444a to your computer and use it in GitHub Desktop.
This file contains 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
void setup(){ | |
Serial.begin(9600); | |
pinMode(13,OUTPUT); | |
} | |
void loop(){ | |
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