New answers tagged

1 vote

Arduino button voltage versus HIGH/LOW state

To answer the posted question literally: Yes, it is the correct way for your circuit, which has the button between the pin and GND, and the LED between VCC and the pin: simulate this circuit – ...
the busybee's user avatar
  • 1,810
-2 votes

Arduino button voltage versus HIGH/LOW state

If you want high state to power in LED and low to disable it reverse your LED.
szachy-a's user avatar
0 votes

Debouncing a button with interrupt

The problem is that you need to check whether the last interrupt was far enough in the past that the output can be considered stable. The most obvious solution to me is to have the ISR record the time ...
David Hawley's user avatar

Top 50 recent answers are included