From 5737228cd49b4d0436c062770a2d2f1cc93ab831 Mon Sep 17 00:00:00 2001 From: Marijn Besseling Date: Wed, 8 Sep 2021 19:34:35 +0200 Subject: [PATCH] Fix comment typo in pico_rgb_keyboard the ^ operator is a bitwise XOR not OR --- examples/pico_rgb_keypad/demo.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pico_rgb_keypad/demo.cpp b/examples/pico_rgb_keypad/demo.cpp index 1feeec6c..4292fb5b 100644 --- a/examples/pico_rgb_keypad/demo.cpp +++ b/examples/pico_rgb_keypad/demo.cpp @@ -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