Two Push Button Led

Hello I need help to convert this Code from Button one counts up on the LED's and Button 2 Resets back to start. What I need is for Button 1 to count up as it does, but for Button 2 ( Pin 7 ) to count back down - reverse to what button one does. Thanks in advance.

bachttps://arduinoproyek.wordpress.com/two-push-button-led/k to start

Iā€™d suggest you check the examples of one of the numerous button library such as Button in easyRun or OneButton or Toggle or EasyButton or Bounce2, ...

Pick one of those libraries and then what you want to achieve is pretty simple

  • post the working code you have as base (not just a Link to any ZIP file). Follow the guidelines of the forum guide how to post code.
  • post the modified code you have so far and describe
    a) what problem you have,
    b) what you want to have instead
1 Like