This commit is contained in:
Олег Бородин
2024-08-26 23:21:17 +02:00
parent bf1294d95e
commit bcc15559c2
3 changed files with 16 additions and 7 deletions

View File

@@ -25,6 +25,13 @@ bool button_is_pressed(void) {
return false;
}
bool button_was_pressed(void) {
if (button.push_counter > 0) {
return true;
}
return false;
}
uint8_t button_get(void) {
if (button.strokes_ended) {
uint8_t counter = button.push_counter;