darts-plus / darts-plus-embedded

Software for ESP8266 inside the dartboard.
0 stars 0 forks source link

Create hardware button handler #2

Open delipl opened 2 years ago

delipl commented 2 years ago

Create and config hardware buttons on our board.

GrzegorzWojnarowicz commented 2 years ago

Make sure to use button_pressed method only once inside the loop (in other case you may get random answer) to check if button was pressed for short, medium or long period of time use switch case.