Fix code example for #229

pull/240/head
Phil Howard 2022-01-26 10:07:17 +00:00
rodzic 9fddf89111
commit 520757d14b
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -36,8 +36,8 @@ int main() {
while(true) {
current_buttons = get_button_states();
changed_buttons = current_buttons ^ last_buttons;
pressed_buttons = current_buttons & changed;
released_buttons = last_buttons & changed;
pressed_buttons = current_buttons & changed_buttons;
released_buttons = last_buttons & changed_buttons;
// Toggle the LED states when a button is pressed
led_states ^= pressed_buttons;