#define ledH 32
#define pinSwitch 12
void setup() {
// put your setup code here, to run once:
pinMode(pinSwitch, INPUT_PULLUP);
pinMode(ledH, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
if(digitalRead(pinSwitch) == HIGH){
digitalWrite(ledH, HIGH);
}
else{
digitalWrite(ledH, LOW);
}
}