/* Hello World BLANK */
const int LED_ROSSO = 8;
const int LED_VERDE = 9;
const int BUTTON1 = 4;
const int BUTTON2 = 5;
int STATO1=0;
int STATO2=0;
void setup() {
pinMode (LED_ROSSO,OUTPUT);
pinMode (LED_VERDE,OUTPUT);
pinMode (BUTTON1,INPUT_PULLUP);
pinMode (BUTTON2,INPUT_PULLUP);
}
void loop() {
STATO1 = digitalRead(BUTTON1);
STATO2 = digitalRead(BUTTON2);
if(STATO1 == LOW)
{
digitalWrite(LED_ROSSO, HIGH);
//delay(10000);
}
if(STATO2 == LOW)
{
digitalWrite(LED_VERDE, HIGH);
}
}