The Code
int button = 12; // switch is on pin 12
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}int button = 12; // switch is on pin 12
void setup() {
// put your setup code here, to run once:
pinMode(button, INPUT);
digitalWrite(green, HIGH);
}
void loop() {
// put your main code here, to run repeatedly:
}Last updated