Fix comment typo in pico_rgb_keyboard

the ^ operator is a bitwise XOR not OR
This commit is contained in:
Marijn Besseling 2021-09-08 19:34:35 +02:00 committed by GitHub
parent 3c3b29cfc0
commit 5737228cd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -44,7 +44,7 @@ int main() {
// for any pressed buttons set the corresponding bit in "lit_buttons"
lit_buttons |= pico_keypad.get_button_states();
// You could use a bitwise OR (^) to make the buttons toggle their respective "lit" bits on and off:
// You could use a bitwise XOR (^) to make the buttons toggle their respective "lit" bits on and off:
// lit_buttons ^= pico_keypad.get_button_states();
// Iterate through the lights