Add Library
This commit is contained in:
parent
e365b9dbd9
commit
3c47103b39
318 changed files with 56465 additions and 0 deletions
|
@ -0,0 +1,15 @@
|
|||
#include <ButtonDebounce.h>
|
||||
|
||||
ButtonDebounce button(10, 250);
|
||||
void buttonChanged(int state){
|
||||
Serial.println("Changed: " + String(state));
|
||||
}
|
||||
|
||||
void setup() {
|
||||
Serial.begin(115200);
|
||||
button.setCallback(buttonChanged);
|
||||
}
|
||||
|
||||
void loop() {
|
||||
button.update();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue