was just watching Jeremy Blum's video's.
in the second episode, he give a simple example of a pushbutton and led.
But the Arduino Uno gives me an reverse response.
the program is following
Jeremy's second program
int switchPin = 8;
int ledPin = 13;
if (digitalRead(switchPin) == HIGH)
when uploading it, it should, when pushing the button, light the led.
However, the led is on and when pushing the button, the led goes off.
Is this just because i need to define begin state of the led?
In the video, it works like a charm. but on my desk, not so much...