My code doesn't work.

UKHeliBob:

const int LED2 = 4;
    if ((LED2 == HIGH)

So, LED2 equals 4
Will it ever equal HIGH ?

That's to point out to which pin the LED is connected to. This shouldn't interfere with the rest of the code.


TolpuddleSartre:

void LEDaan2(){

loop;{



What's that?

LEDaan2 is to activate one of the LED's. i used loop to make the go on and of continuously if the button is pressed.