move import to correct location

This commit is contained in:
Jeff Epler 2022-12-06 15:31:06 -06:00
parent fb4c126238
commit 04ca48e8eb
No known key found for this signature in database
GPG key ID: D5BF15AB975AB4DE

View file

@ -12,11 +12,6 @@ from adafruit_hid.keyboard import Keyboard
from adafruit_hid.keyboard import Keycode
from adafruit_pioasm import Program
from adafruit_ticks import ticks_add, ticks_less, ticks_ms
# Customize the power key's keycode. You can change it to `Keycode.POWER` if
# you really want to accidentally power off your computer!
POWER_KEY_SENDS = Keycode.F1
from next_keycode import (
cc_value,
is_cc,
@ -26,6 +21,10 @@ from next_keycode import (
shift_modifiers,
)
# Customize the power key's keycode. You can change it to `Keycode.POWER` if
# you really want to accidentally power off your computer!
POWER_KEY_SENDS = Keycode.F1
# according to https://journal.spencerwnelson.com/entries/nextkb.html the
# keyboard's timing source is a 455MHz crystal, and the serial data rate is
# 1/24 the crystal frequency. This differs by a few percent from the "50us" bit