unbreak kdb corne
This commit is contained in:
parent
083e4a701a
commit
cd3e10ba13
@ -7,11 +7,9 @@ import board
|
|||||||
# from adafruit_display_text import label
|
# from adafruit_display_text import label
|
||||||
from kb import KMKKeyboard
|
from kb import KMKKeyboard
|
||||||
|
|
||||||
from kmk.extensions.rgb import RGB
|
|
||||||
from kmk.hid import HIDModes
|
from kmk.hid import HIDModes
|
||||||
from kmk.keys import KC
|
from kmk.keys import KC
|
||||||
from kmk.modules.layers import Layers
|
from kmk.modules.layers import Layers
|
||||||
from kmk.modules.power import Power
|
|
||||||
from kmk.modules.split import Split, SplitType
|
from kmk.modules.split import Split, SplitType
|
||||||
|
|
||||||
keyboard = KMKKeyboard()
|
keyboard = KMKKeyboard()
|
||||||
@ -20,36 +18,10 @@ keyboard = KMKKeyboard()
|
|||||||
keyboard.tap_time = 320
|
keyboard.tap_time = 320
|
||||||
keyboard.debug_enabled = False
|
keyboard.debug_enabled = False
|
||||||
|
|
||||||
rgb_ext = RGB(
|
split = Split(split_type=SplitType.UART)
|
||||||
pixel_pin=keyboard.rgb_pixel_pin,
|
|
||||||
num_pixels=6,
|
|
||||||
val_limit=100,
|
|
||||||
hue_default=190,
|
|
||||||
sat_default=100,
|
|
||||||
val_default=5,
|
|
||||||
)
|
|
||||||
|
|
||||||
split = Split(split_type=SplitType.BLE)
|
|
||||||
power = Power(powersave_pin=keyboard.powersave_pin)
|
|
||||||
layers = Layers()
|
layers = Layers()
|
||||||
|
|
||||||
keyboard.modules = [split, power, layers]
|
keyboard.modules = [split, layers]
|
||||||
keyboard.extensions = [rgb_ext]
|
|
||||||
|
|
||||||
enable_oled = False
|
|
||||||
|
|
||||||
'''
|
|
||||||
if enable_oled:
|
|
||||||
displayio.release_displays()
|
|
||||||
i2c = board.I2C()
|
|
||||||
display_bus = displayio.I2CDisplay(i2c, device_address=0x3c)
|
|
||||||
display = adafruit_displayio_ssd1306.SSD1306(display_bus, width=128, height=32)
|
|
||||||
splash = displayio.Group(max_size=10)
|
|
||||||
display.show(splash)
|
|
||||||
else:
|
|
||||||
displayio.release_displays()
|
|
||||||
'''
|
|
||||||
keyboard.i2c_deinit_count += 1
|
|
||||||
|
|
||||||
_______ = KC.TRNS
|
_______ = KC.TRNS
|
||||||
XXXXXXX = KC.NO
|
XXXXXXX = KC.NO
|
||||||
@ -74,49 +46,12 @@ keyboard.keymap = [
|
|||||||
#
|
#
|
||||||
[
|
[
|
||||||
# DVORAK
|
# DVORAK
|
||||||
KC.GESC,
|
KC.GESC, KC.QUOT, KC.COMM, KC.DOT, KC.P, KC.Y, KC.F, KC.G, KC.C, KC.R, KC.L, KC.BSPC, \
|
||||||
KC.QUOT,
|
TAB_SB, KC.A, KC.O, KC.E, KC.U, KC.I, KC.D, KC.H, KC.T, KC.N, KC.S, KC.ENT, \
|
||||||
KC.COMM,
|
KC.LSFT, KC.SCLN, KC.Q, KC.J, KC.K, KC.X, KC.B, KC.M, KC.W, KC.V, KC.Z, KC.SLSH, \
|
||||||
KC.DOT,
|
KC.LALT, SUPER_L, LT1_SP, LT2_SP, KC.LCTL, KC.NO,
|
||||||
KC.P,
|
|
||||||
KC.Y,
|
|
||||||
KC.F,
|
|
||||||
KC.G,
|
|
||||||
KC.C,
|
|
||||||
KC.R,
|
|
||||||
KC.L,
|
|
||||||
KC.BSPC,
|
|
||||||
TAB_SB,
|
|
||||||
KC.A,
|
|
||||||
KC.O,
|
|
||||||
KC.E,
|
|
||||||
KC.U,
|
|
||||||
KC.I,
|
|
||||||
KC.D,
|
|
||||||
KC.H,
|
|
||||||
KC.T,
|
|
||||||
KC.N,
|
|
||||||
KC.S,
|
|
||||||
KC.ENT,
|
|
||||||
KC.LSFT,
|
|
||||||
KC.SCLN,
|
|
||||||
KC.Q,
|
|
||||||
KC.J,
|
|
||||||
KC.K,
|
|
||||||
KC.X,
|
|
||||||
KC.B,
|
|
||||||
KC.M,
|
|
||||||
KC.W,
|
|
||||||
KC.V,
|
|
||||||
KC.Z,
|
|
||||||
KC.SLSH,
|
|
||||||
KC.LALT,
|
|
||||||
SUPER_L,
|
|
||||||
LT1_SP,
|
|
||||||
LT2_SP,
|
|
||||||
KC.LCTL,
|
|
||||||
KC.N0,
|
|
||||||
],
|
],
|
||||||
|
|
||||||
# GAMING
|
# GAMING
|
||||||
# ,-----------------------------------------. ,-----------------------------------------.
|
# ,-----------------------------------------. ,-----------------------------------------.
|
||||||
# | Tab | ' | , | . | P | Y | | F | G | C | R | L | BKSP |
|
# | Tab | ' | , | . | P | Y | | F | G | C | R | L | BKSP |
|
||||||
@ -131,48 +66,10 @@ keyboard.keymap = [
|
|||||||
#
|
#
|
||||||
[
|
[
|
||||||
# GAMING
|
# GAMING
|
||||||
KC.ESC,
|
KC.ESC, KC.QUOT, KC.COMM, KC.DOT, KC.P, KC.Y, KC.F, KC.G, KC.C, KC.R, KC.L, KC.BSPC, \
|
||||||
KC.QUOT,
|
KC.LCTL, KC.A, KC.O, KC.E, KC.U, KC.I, KC.D, KC.H, KC.T, KC.N, KC.S, KC.ENT, \
|
||||||
KC.COMM,
|
KC.LSFT, KC.SCLN, KC.Q, KC.J, KC.K, KC.X, KC.B, KC.M, KC.W, KC.V, KC.Z, KC.SLSH, \
|
||||||
KC.DOT,
|
KC.LALT, KC.SPC, KC.SPC, LT2_SP, KC.LCTL, KC.UP,
|
||||||
KC.P,
|
|
||||||
KC.Y,
|
|
||||||
KC.F,
|
|
||||||
KC.G,
|
|
||||||
KC.C,
|
|
||||||
KC.R,
|
|
||||||
KC.L,
|
|
||||||
KC.BSPC,
|
|
||||||
KC.LCTL,
|
|
||||||
KC.A,
|
|
||||||
KC.O,
|
|
||||||
KC.E,
|
|
||||||
KC.U,
|
|
||||||
KC.I,
|
|
||||||
KC.D,
|
|
||||||
KC.H,
|
|
||||||
KC.T,
|
|
||||||
KC.N,
|
|
||||||
KC.S,
|
|
||||||
KC.ENT,
|
|
||||||
KC.LSFT,
|
|
||||||
KC.SCLN,
|
|
||||||
KC.Q,
|
|
||||||
KC.J,
|
|
||||||
KC.K,
|
|
||||||
KC.X,
|
|
||||||
KC.B,
|
|
||||||
KC.M,
|
|
||||||
KC.W,
|
|
||||||
KC.V,
|
|
||||||
KC.Z,
|
|
||||||
KC.SLSH,
|
|
||||||
KC.LALT,
|
|
||||||
KC.SPC,
|
|
||||||
KC.SPC,
|
|
||||||
LT2_SP,
|
|
||||||
KC.LCTL,
|
|
||||||
KC.UP,
|
|
||||||
],
|
],
|
||||||
# RAISE1
|
# RAISE1
|
||||||
# ,-----------------------------------------. ,-----------------------------------------.
|
# ,-----------------------------------------. ,-----------------------------------------.
|
||||||
@ -188,48 +85,10 @@ keyboard.keymap = [
|
|||||||
#
|
#
|
||||||
[
|
[
|
||||||
# RAISE1
|
# RAISE1
|
||||||
_______,
|
_______, _______, _______, _______, _______, _______, XXXXXXX, XXXXXXX, KC.N7, KC.N8, KC.N9, KC.DEL, \
|
||||||
_______,
|
_______, _______, _______, _______, _______, _______, XXXXXXX, XXXXXXX, KC.N4, KC.N5, KC.N6, KC.BSLS, \
|
||||||
_______,
|
_______, _______, _______, _______, _______, _______, XXXXXXX, XXXXXXX, KC.N1, KC.N2, KC.N3, KC.MINS, \
|
||||||
_______,
|
_______, _______, _______, _______, KC.EQL, KC.N0,
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
KC.PS_TOG,
|
|
||||||
XXXXXXX,
|
|
||||||
KC.N7,
|
|
||||||
KC.N8,
|
|
||||||
KC.N9,
|
|
||||||
KC.DEL,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
XXXXXXX,
|
|
||||||
XXXXXXX,
|
|
||||||
KC.N4,
|
|
||||||
KC.N5,
|
|
||||||
KC.N6,
|
|
||||||
KC.BSLS,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
XXXXXXX,
|
|
||||||
XXXXXXX,
|
|
||||||
KC.N1,
|
|
||||||
KC.N2,
|
|
||||||
KC.N3,
|
|
||||||
KC.MINS,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
KC.EQL,
|
|
||||||
KC.N0,
|
|
||||||
],
|
],
|
||||||
# RAISE2
|
# RAISE2
|
||||||
# ,-----------------------------------------. ,-----------------------------------------.
|
# ,-----------------------------------------. ,-----------------------------------------.
|
||||||
@ -243,50 +102,13 @@ keyboard.keymap = [
|
|||||||
# | | |/ / \ \ | | |
|
# | | |/ / \ \ | | |
|
||||||
# `---------------------' '------''-------------'
|
# `---------------------' '------''-------------'
|
||||||
#
|
#
|
||||||
|
|
||||||
[
|
[
|
||||||
# RAISE2
|
# RAISE2
|
||||||
_______,
|
_______, KC.F9, KC.F10, KC.F11, KC.F12, _______, _______, _______, _______, KC.LBRC, KC.RBRC, KC.LSHIFT(KC.INS), \
|
||||||
KC.F9,
|
_______, KC.F5, KC.F6, KC.F7, KC.F8, _______, KC.HOME, KC.LEFT, KC.DOWN, KC.UP, KC.RGHT, KC.END, \
|
||||||
KC.F10,
|
_______, KC.F1, KC.F2, KC.F3, KC.F4, _______, _______, _______, _______, _______, _______, KC.BSLS, \
|
||||||
KC.F11,
|
_______, _______, _______, _______, KC.DF(0), KC.DF(1),
|
||||||
KC.F12,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
KC.LBRC,
|
|
||||||
KC.RBRC,
|
|
||||||
KC.LSHIFT(KC.INS),
|
|
||||||
_______,
|
|
||||||
KC.F5,
|
|
||||||
KC.F6,
|
|
||||||
KC.F7,
|
|
||||||
KC.F8,
|
|
||||||
_______,
|
|
||||||
KC.HOME,
|
|
||||||
KC.LEFT,
|
|
||||||
KC.DOWN,
|
|
||||||
KC.UP,
|
|
||||||
KC.RGHT,
|
|
||||||
KC.END,
|
|
||||||
_______,
|
|
||||||
KC.F1,
|
|
||||||
KC.F2,
|
|
||||||
KC.F3,
|
|
||||||
KC.F4,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
KC.BSLS,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
KC.DF(0),
|
|
||||||
KC.DF(1),
|
|
||||||
],
|
],
|
||||||
# GUI
|
# GUI
|
||||||
# ,-----------------------------------------. ,-----------------------------------------.
|
# ,-----------------------------------------. ,-----------------------------------------.
|
||||||
@ -299,109 +121,36 @@ keyboard.keymap = [
|
|||||||
# | LALT | LGUI | /LT1_SP / \LT2_SP\ | | |
|
# | LALT | LGUI | /LT1_SP / \LT2_SP\ | | |
|
||||||
# | | |/ / \ \ | | |
|
# | | |/ / \ \ | | |
|
||||||
# `---------------------' '------''-------------'
|
# `---------------------' '------''-------------'
|
||||||
|
|
||||||
[
|
[
|
||||||
# GUI
|
# GUI
|
||||||
_______,
|
_______, KC.N1, KC.N2, KC.N3, KC.N4, KC.N5, _______, _______, _______, _______, _______, _______, \
|
||||||
KC.N1,
|
_______, KC.N6, KC.N7, KC.N8, KC.N9, KC.N0, _______, _______, _______, _______, _______, _______, \
|
||||||
KC.N2,
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
KC.N3,
|
|
||||||
KC.N4,
|
_______, _______, _______, _______, _______, _______ \
|
||||||
KC.N5,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
KC.N6,
|
|
||||||
KC.N7,
|
|
||||||
KC.N8,
|
|
||||||
KC.N9,
|
|
||||||
KC.N0,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
],
|
],
|
||||||
# SYMBOLS
|
# SYMBOLS
|
||||||
# ,-----------------------------------------. ,-----------------------------------------.
|
# ,-----------------------------------------. ,-----------------------------------------.
|
||||||
# | | ! | @ | # | $ | % | | ^ | & | * | ( | ) | Del |
|
# | | ! | @ | # | $ | % | | ^ | & | * | ( | ) | Del |
|
||||||
# |------+------+------+------+------+------| |------+------+------+------+------+------|
|
# |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||||
# | | | | | | | | | | | [ | ] | |
|
# | | | | | | | | | | | [ | ] | |
|
||||||
# |------+------+------+------+------+------| |------+------+------+------+------+------|
|
# |------+------+------+------+------+------| |------+------+------+------+------+------|
|
||||||
# | | | | | | |-------. ,-------| | | | | | |
|
# | | | | | | |-------. ,-------| | | | | | |
|
||||||
# `-----------------------------------------/ / \ \-----------------------------------------'
|
# `-----------------------------------------/ / \ \-----------------------------------------'
|
||||||
# | LALT | LGUI | /LT1_SP / \LT2_SP\ | | |
|
# | LALT | LGUI | /LT1_SP / \LT2_SP\ | | |
|
||||||
# | | |/ / \ \ | | |
|
# | | |/ / \ \ | | |
|
||||||
# `---------------------' '------''-------------'
|
# `---------------------' '------''-------------'
|
||||||
#
|
#
|
||||||
[
|
[
|
||||||
# SYMBOLS
|
# SYMBOLS
|
||||||
_______,
|
_______, KC.EXLM, KC.AT, KC.HASH, KC.DLR, KC.PERC, KC.CIRC, KC.AMPR, KC.ASTR, KC.LPRN, KC.RPRN, KC.DEL, \
|
||||||
KC.EXLM,
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, KC.LBRC, KC.RBRC, _______, \
|
||||||
KC.AT,
|
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, \
|
||||||
KC.HASH,
|
_______, _______, _______, _______, _______, _______,
|
||||||
KC.DLR,
|
]
|
||||||
KC.PERC,
|
|
||||||
KC.CIRC,
|
|
||||||
KC.AMPR,
|
|
||||||
KC.ASTR,
|
|
||||||
KC.LPRN,
|
|
||||||
KC.RPRN,
|
|
||||||
KC.DEL,
|
|
||||||
_______,
|
|
||||||
KC.RGB_HUI,
|
|
||||||
KC.RGB_HUD,
|
|
||||||
KC.RGB_VAI,
|
|
||||||
KC.RGB_VAD,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
KC.LBRC,
|
|
||||||
KC.RBRC,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
KC.RGB_RST,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
KC.RGB_TOG,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
_______,
|
|
||||||
],
|
|
||||||
]
|
]
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
keyboard.go(hid_type=HIDModes.BLE)
|
keyboard.go(hid_type=HIDModes.USB)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user