Skip to content

Commit

Permalink
Added comments. Defined constants. Separated debounce timers. Added f…
Browse files Browse the repository at this point in the history
…lag to disable switching.

I am more than guilty of doing too much in a single commit.

Added a ton of comments so that newbies might get it.
Changed variables that were used as constant to just be #define 'd
instead. No more magic #s?
For some reason I was using a single debounce timer for both buttons.
Fixed. In addition added debounce to single button press mode.
Added CAN_SWITCH_MODES for those who just want one mode or the other.
  • Loading branch information
Chris-Johnston committed Apr 28, 2017
1 parent 2c8aa15 commit 4e58d89
Show file tree
Hide file tree
Showing 2 changed files with 161 additions and 84 deletions.
Loading

0 comments on commit 4e58d89

Please sign in to comment.