Skip to content

Commit 04ca48e

Browse files
committed
move import to correct location
1 parent fb4c126 commit 04ca48e

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

  • CircuitPython_NeXT_Keyboard_RP2040

CircuitPython_NeXT_Keyboard_RP2040/code.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@
1212
from adafruit_hid.keyboard import Keycode
1313
from adafruit_pioasm import Program
1414
from adafruit_ticks import ticks_add, ticks_less, ticks_ms
15-
16-
# Customize the power key's keycode. You can change it to `Keycode.POWER` if
17-
# you really want to accidentally power off your computer!
18-
POWER_KEY_SENDS = Keycode.F1
19-
2015
from next_keycode import (
2116
cc_value,
2217
is_cc,
@@ -26,6 +21,10 @@
2621
shift_modifiers,
2722
)
2823

24+
# Customize the power key's keycode. You can change it to `Keycode.POWER` if
25+
# you really want to accidentally power off your computer!
26+
POWER_KEY_SENDS = Keycode.F1
27+
2928
# according to https://journal.spencerwnelson.com/entries/nextkb.html the
3029
# keyboard's timing source is a 455MHz crystal, and the serial data rate is
3130
# 1/24 the crystal frequency. This differs by a few percent from the "50us" bit

0 commit comments

Comments
 (0)