Add reset_press_count method to Debounced

This commit is contained in:
redfast00 2022-03-18 21:42:42 +01:00
parent 5fddb14e0c
commit 4abd8abfaa
No known key found for this signature in database
GPG Key ID: 5946E0E34FD0553C
2 changed files with 5 additions and 0 deletions

View File

@ -50,3 +50,7 @@ bool Debounced::loop(bool currently_down) {
uint16_t Debounced::get_press_count() {
return press_count;
}
void Debounced::reset_press_count() {
press_count = 0;
}

View File

@ -28,6 +28,7 @@ class Debounced {
bool loop(bool currently_down);
uint16_t get_press_count();
void reset_press_count();
};
#endif /* end of include guard: OBUS_UTIL_H */