I want to put the led on when the button is pushed...But I have some problem with the language on the software...
If I write in void loop
val= digitalread (inpin); // read input value
if (val== HIGH) // check if the input is HIGH (Button released)
digitalwrite (ledpin, LOW); // Turn LED off
digitalwrite (ledpin, HIGH); // turn LED on
I have the opposite that I want... The led Turns on always and it turns off when I push the button...
Where do I change the value HIGH and LOW??
Please somebody answer me........