zerog2k / stc_diyclock

STC DIY Clock redux (STC15F204EA, STC15W404AS, STC15W408AS)
MIT License
171 stars 66 forks source link

Improve button response #17

Closed darinfranklin closed 7 years ago

darinfranklin commented 7 years ago

Reformat the main loop with one statement per line so that future changes will be easier to diff. Produce keypress events in the ISR to separate the button press detection from the event handling in the main loop.

zerog2k commented 7 years ago

great job, thanks for the PR. Buttons are indeed much more responsive.