Skip to content

Instantly share code, notes, and snippets.

View mertalp-ulus's full-sized avatar
💤
coding dreams in dreams

Mertalp Ulus mertalp-ulus

💤
coding dreams in dreams
View GitHub Profile
//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