Open lilibp opened 2 weeks ago
The button_checker function toggles the button state between "up" and "down" based on the input.
button_checker
press
button_state
Ensure proper state toggling for all input scenarios.
I ended up writing this code's function, but Yann will be tasked with writing the unittest for it.
Purpose:
The
button_checker
function toggles the button state between "up" and "down" based on the input.Inputs:
press
(bool): Current button press state.Outputs:
button_state
(bool): The updated button state.Notes:
Ensure proper state toggling for all input scenarios.