Created
November 10, 2017 19:23
-
-
Save LuizFelipeLemon/2d382df9bf4a836866b0a7bedacdd463 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#define pot A5 //Nomeia a porta A5 como pot | |
void setup(){ | |
Serial.begin(9600); //Inicia a Serial | |
pinMode(pot,INPUT); //Define o pino A5 como entrada | |
} | |
void loop(){ | |
int leitura = analogRead(pot); //Variável que armazena a leitura analógica do pino A5 | |
Serial.println(leitura); //Mostra esta leitura na Serial | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment