int const led = 13;
int const button = 12;
int const potenciometer = A0;
void setup() {
// put your setup code here, to run once:
pinMode(led, OUTPUT);
pinMode(button, INPUT);
pinMode(potenciometer, INPUT);
Serial.begin(9600);
}
void loop(){
// put your main code here, to run repeatedly:
int btnValue = digitalRead(button);
Serial.println(btnValue);
if(btnValue == 1){
digitalWrite(led, HIGH);
}
else if (btnValue == 0){
digitalWrite(led, LOW);
}
}
void potenciometer {
int potValue = analogRead(potenciometer)
Serial.println(potValue);
}