Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
//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