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 ntc A1 //Nomeia a porta A1 como ntc | |
void setup(){ | |
Serial.begin(9600); //Inicia a Serial | |
pinMode(ntc,INPUT); //Define o pino A5 como entrada | |
} | |
void loop(){ | |
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 ldr A0 //Nomeia a porta A0 como pot | |
#define led 3 //Nomeia a porta 3 como led | |
void setup(){ | |
Serial.begin(9600); //Inicia a Serial | |
pinMode(ldr,INPUT); //Define o pino A5 como entrada | |
pinMode(3,OUTPUT); //Define o pino 3 como saída | |
} |
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(){ | |
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 |