It toggles, but only after a long push, and only during the HIGH transisition, otherwise it only works occasionally.
Im trying to figure out how to implement the debounce code, for example this;
how would I put this into a variable?
int buttonValue = digitalRead(3);
Are you saying that the MCU treats a variable different than a digital read?
but I didnt notice much change
So the rule Im breaking is posting in the wrong thread?
how to get a second led, in that loop using the same logic with different interval/freq?