int pot = 0;
void setup() {
//Serial.begin(115200);
// put your setup code here, to run once:
pinMode(12, INPUT);
pinMode(35, INPUT_PULLUP);
pinMode(14, OUTPUT);
pinMode(27, OUTPUT);
}
void loop() {
if (digitalRead(12) == HIGH) {
delay(20);
digitalWrite(14, HIGH);
}
else digitalWrite(14, LOW);
if (digitalRead(35) == LOW) {
delay(20);
digitalWrite(27, HIGH);
}
else digitalWrite(27, LOW);
pot = analogRead(34);
//Serial.println(pot);
// put your main code here, to run repeatedly:
delay(250); // this speeds up the simulation
}