File tree Expand file tree Collapse file tree
CircuitPython_NeXT_Keyboard_RP2040 Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2022 Jeff Epler for Adafruit Industries
2+ # SPDX-License-Identifier: MIT
13import array
24import time
35
@@ -70,8 +72,6 @@ def set_leds(i):
7072 return pack_message_str (f"0000000001110{ i :02b} 0000000" )
7173
7274
73- TEST1 = pack_message_str ("010100" )
74- TEST2 = pack_message_str ("001010" )
7575QUERY = pack_message_str ("000001000" , 1 )
7676RESET = pack_message_str ("0111101111110000000000" )
7777
@@ -84,7 +84,7 @@ def is_make(report):
8484
8585
8686def is_mod_report (report ):
87- return not report & 1
87+ return not bool ( report & BIT_MOD )
8888
8989
9090# keycode bits are backwards compared to other information sources
Original file line number Diff line number Diff line change 1+ # SPDX-FileCopyrightText: 2022 Jeff Epler for Adafruit Industries
2+ # SPDX-License-Identifier: MIT
13from adafruit_hid .consumer_control_code import ConsumerControlCode as C
24from adafruit_hid .keycode import Keycode as K
35
You can’t perform that action at this time.
0 commit comments