int button = 3;
int button2 = 4;
int a = 5;
int b = 6;
int c = 7;
int d = 8;
int e = 9;
int f = 10;
int g = 11;
int led = 12;
int buttons = 0;
int buttons2 = 0;
void setup() {
// put your setup code here, to run once:
pinMode(button, INPUT);
pinMode(button2, INPUT);
pinMode(a, OUTPUT);
pinMode(b, OUTPUT);
pinMode(c, OUTPUT);
pinMode(d, OUTPUT);
pinMode(e, OUTPUT);
pinMode(f, OUTPUT);
pinMode(g, OUTPUT);
pinMode(led, OUTPUT);
}
void loop() {
digitalWrite(a, HIGH);
digitalWrite(b, HIGH);
digitalWrite(c, HIGH);
digitalWrite(d, HIGH);
digitalWrite(e, HIGH);
digitalWrite(f, HIGH);
digitalWrite(g, HIGH);
buttons = digitalRead(button);
buttons2 = digitalRead(button2);
if (buttons == HIGH) {
digitalWrite(led,HIGH);
{
void one();
}
}
else if (buttons2 == HIGH) {
digitalWrite(led,LOW);
}else {
digitalWrite(led,LOW);
}
}