This commit is contained in:
2024-08-08 20:47:44 -05:00
parent fe9a4df7a9
commit b6eac70c2c
9 changed files with 429 additions and 88 deletions
+2 -2
View File
@@ -142,8 +142,8 @@ bool get_flipped_switch(SwitchKey* switch_) {
return false;
}
uint8_t get_switch_state(uint8_t* switch_flags) {
return (uint8_t)(button_state && 0xF);
uint8_t get_switch_state() {
return (uint8_t)(~button_state & 0xF);
}
bool get_touch_state(void) {
+1 -1
View File
@@ -59,7 +59,7 @@ uint8_t get_button_state();
bool get_flipped_up_switch(SwitchKey* switch_);
bool get_flipped_down_switch(SwitchKey* switch_);
bool get_flipped_switch(SwitchKey* switch_);
uint8_t get_switch_state(uint8_t* switch_flags);
uint8_t get_switch_state();
bool get_touch_state(void);
bool get_touch_pressed(void);