step 3
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user