Skip to content

Instantly share code, notes, and snippets.

@HectorTorres
Created February 28, 2018 16:36
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 HectorTorres/2f4e643ab53f84be92ee8f5167941b46 to your computer and use it in GitHub Desktop.
Save HectorTorres/2f4e643ab53f84be92ee8f5167941b46 to your computer and use it in GitHub Desktop.
//Serial.begin(rate)
Serial.begin(9600); // abre el puerto serial. Fija la velocidad de comunicación en 9600 baudios (el valor más usado).
//Serial.println(data)
Serial.println(digitalRead(12); //manda el valor a través del puerto serial de la lectura del pin 12.
//Serial.read()
Het_pro = Serial.read(); //asigna a "Het_pro" el valor obtenido del puerto serial en su lectura.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment