Instantly share code, notes, and snippets.
jmasked
/ Simple Button Debounce State Machine
Created
April 16, 2020 16:04
— forked from NormalUniverse/Simple Button Debounce State Machine
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Title: Button Debouncing using a State Machine, Complex Version | |
| //Author: Chris Guichet | |
| //Date: Jan 15, 2018 | |
| // | |
| //Description: | |
| // -A State Machine is a useful tool to organize complex code | |
| // -Think of it like the next step beyone "If Else" statements | |
| // -This example code uses a State Machine to handle tac switch debouncing | |
| // -It also has a "Hold" function to enable interaction with long button presses | |
| // |
jmasked
/ Button, Buzzer, and LED State Machines
Created
April 14, 2020 12:32
— forked from NormalUniverse/Button, Buzzer, and LED State Machines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Title: Button Debouncing using a State Machine | |
| //Author: Chris Guichet | |
| //Date: Jan 15, 2018 | |
| // | |
| //Description: | |
| // -A State Machine is a useful tool to organize complex code | |
| // -Think of it like the next step beyone "If Else" statements | |
| // -This example code uses a State Machine to handle tac switch debouncing | |
| // -It also has a "Hold" function to enable interaction with long button presses | |
| // -The tac switch is used to control a buzzer and an LED, it can multitask |