Skip to content

Instantly share code, notes, and snippets.

@esmarr58
Created December 21, 2017 22:01
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 esmarr58/eeb617736d4fdebf48f7a5c9153f78d0 to your computer and use it in GitHub Desktop.
Save esmarr58/eeb617736d4fdebf48f7a5c9153f78d0 to your computer and use it in GitHub Desktop.
void setup() {
Serial.begin(9600); //Configuracion de la velocidad serial
}
void loop() {
Serial.print("Lectura: ");
Serial.println(analogRead(A0)); //Imprime el valor de la lectura del canal A0
delay(2000); //retardo de 2 segundos entre lectura
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment