Skip to content

Commit efa0eb4

Browse files
committed
A few more tweaks & SPDX
1 parent 5c661fa commit efa0eb4

2 files changed

Lines changed: 5 additions & 3 deletions

File tree

CircuitPython_NeXT_Keyboard_RP2040/code.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-FileCopyrightText: 2022 Jeff Epler for Adafruit Industries
2+
# SPDX-License-Identifier: MIT
13
import array
24
import 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")
7575
QUERY = pack_message_str("000001000", 1)
7676
RESET = pack_message_str("0111101111110000000000")
7777

@@ -84,7 +84,7 @@ def is_make(report):
8484

8585

8686
def 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

CircuitPython_NeXT_Keyboard_RP2040/next_keycode.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# SPDX-FileCopyrightText: 2022 Jeff Epler for Adafruit Industries
2+
# SPDX-License-Identifier: MIT
13
from adafruit_hid.consumer_control_code import ConsumerControlCode as C
24
from adafruit_hid.keycode import Keycode as K
35

0 commit comments

Comments
 (0)