Find analog value based on number of led with shift register

OK I see, but that's mixing the buttons functionality with whatever else is going on. They should be separate, the interpretation of a given button press entirely independent of figuring out if, and which, button gets pressed.

Divide and conquer.

a7

1 Like

Divide and conquer.

What you should be working on while the focus is this resistor thing is simply getting the buttons to work.

This I would do with a small sketch that doe nothing else. It makes it easier to see what's going on - basically less code to ignore.

Like printing a running count of how many times each button gets pressed.

a7

Yes

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.