int bottuNew;
int bottuOld = 1;
int LED =0;
void setup() {
pinMode(8, OUTPUT);
pinMode(12, INPUT);
Serial.begin(9600);
// put your setup code here, to run once:
}
void loop() {
Serial.println(digitalRead(12));
bottuNew=digitalRead(12);
if((bottuOld == 0) && (bottuNew==1) ){
if(LED == 0){
digitalWrite(8, HIGH);
LED = 1;
}
else{
digitalWrite(8, LOW);
LED = 0;
}
}
bottuOld = bottuNew;
delay(00);
// put your main code here, to run repeatedly:
}