kopia lustrzana https://github.com/pimoroni/pimoroni-pico
Fix comment typo in pico_rgb_keyboard
the ^ operator is a bitwise XOR not ORpull/203/head
rodzic
3c3b29cfc0
commit
5737228cd4
|
@ -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
|
||||
|
|
Ładowanie…
Reference in New Issue