Skip to content

Commit

Permalink
board hygiene for local mocking
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Surry authored and patricksurry committed Dec 9, 2023
1 parent ee27388 commit 55a1bb1
Show file tree
Hide file tree
Showing 40 changed files with 130 additions and 82 deletions.
2 changes: 1 addition & 1 deletion boards/Pico14/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from kb import KMKKeyboard

from kmk.extensions.LED import LED
from kmk.extensions.led import LED
from kmk.extensions.lock_status import LockStatus
from kmk.keys import KC
from kmk.modules.layers import Layers
Expand Down
2 changes: 1 addition & 1 deletion boards/Pico87/kb.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import board

from kmk.extensions.LED import LED
from kmk.extensions.led import LED
from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
from kmk.scanners import DiodeOrientation

Expand Down
4 changes: 2 additions & 2 deletions boards/anavi/anavi-arrows/code.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

from arrows import AnaviArrows

from kmk.extensions.LED import LED
from kmk.extensions.led import LED
from kmk.extensions.media_keys import MediaKeys
from kmk.extensions.peg_oled_Display import (
from kmk.extensions.peg_oled_display import (
Oled,
OledData,
OledDisplayMode,
Expand Down
2 changes: 1 addition & 1 deletion boards/anavi/macro-pad-10/code.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import board

from kmk.extensions.LED import LED
from kmk.extensions.led import LED
from kmk.extensions.media_keys import MediaKeys
from kmk.extensions.RGB import RGB, AnimationModes
from kmk.keys import KC
Expand Down
4 changes: 2 additions & 2 deletions boards/anavi/macro-pad-12/code.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import board

from kmk.extensions.LED import LED
from kmk.extensions.led import LED
from kmk.extensions.media_keys import MediaKeys
from kmk.extensions.peg_oled_Display import (
from kmk.extensions.peg_oled_display import (
Oled,
OledData,
OledDisplayMode,
Expand Down
3 changes: 2 additions & 1 deletion boards/atreus62/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
layers = Layers()

# 1 encoder, no button, inversed = True
encoder = EncoderHandler(
encoder = EncoderHandler()
encoder.pins = (
(board.D40, board.D41, None, True),
)
keyboard.modules = [layers, encoder]
Expand Down
2 changes: 1 addition & 1 deletion boards/boardsource/Lulu/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from kb import KMKKeyboard

from kmk.extensions.peg_oled_Display import (
from kmk.extensions.peg_oled_display import (
Oled,
OledData,
OledDisplayMode,
Expand Down
8 changes: 4 additions & 4 deletions boards/boardsource/unicorne/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from kb import KMKKeyboard

from kmk.extensions.peg_oled_Display import (
from kmk.extensions.peg_oled_display import (
Oled,
OledData,
OledDisplayMode,
Expand All @@ -15,13 +15,13 @@
from kmk.modules.combos import Chord, Combos
from kmk.modules.holdtap import HoldTapRepeat
from kmk.modules.layers import Layers
from kmk.modules.modtap import ModTap
#from kmk.modules.modtap import ModTap
from kmk.modules.oneshot import OneShot
from kmk.modules.split import Split, SplitSide, SplitType

supervisor.runtime.autoreload = False
keyboard = KMKKeyboard()
modtap = ModTap()
#modtap = ModTap()
combos = Combos()
oneshot = OneShot()
layers = Layers()
Expand All @@ -33,7 +33,7 @@
OS_LALT = KC.OS(KC.LALT)
keyboard.modules.append(oneshot)
keyboard.modules.append(layers)
keyboard.modules.append(modtap)
#keyboard.modules.append(modtap)
keyboard.modules.append(combos)

# oled
Expand Down
4 changes: 2 additions & 2 deletions boards/dactyl_manuform_carbonfet/5x6/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
[ #1
KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.NLCK, KC.P7, KC.P8, KC.P9, KC.PMNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.UNDS, KC.MINS, KC.KC.LBRC, KC.KC.RBRC, KC.PAST, KC.P4, KC.P5, KC.P6, KC.PPLS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.EQL, KC.PLUS, KC.KC.LCBR, KC.KC.RCBR, KC.PSLS, KC.P1, KC.P2, KC.P3, KC.PENT, KC.TRNS,
KC.TRNS, KC.TRNS, KC.UNDS, KC.MINS, KC.LBRC, KC.RBRC, KC.PAST, KC.P4, KC.P5, KC.P6, KC.PPLS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.EQL, KC.PLUS, KC.LCBR, KC.RCBR, KC.PSLS, KC.P1, KC.P2, KC.P3, KC.PENT, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.NO, KC.NO, KC.LALT, KC.RSFT, SFTGUI, KC.P0, KC.PDOT,
KC.NO, KC.NO, KC.NO, KC.RGUI, KC.RCTL, ALTCTL,
],
Expand Down
4 changes: 2 additions & 2 deletions boards/dactyl_manuform_carbonfet/6x6/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
KC.F13, KC.F14, KC.F15, KC.F16, KC.F17, KC.F18, KC.F19, KC.F20, KC.F21, KC.F22, KC.F23, KC.F24,
KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.NLCK, KC.P7, KC.P8, KC.P9, KC.PMNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.UNDS, KC.MINS, KC.KC.LBRC, KC.KC.RBRC, KC.PAST, KC.P4, KC.P5, KC.P6, KC.PPLS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.EQL, KC.PLUS, KC.KC.LCBR, KC.KC.RCBR, KC.PSLS, KC.P1, KC.P2, KC.P3, KC.PENT, KC.TRNS,
KC.TRNS, KC.TRNS, KC.UNDS, KC.MINS, KC.LBRC, KC.RBRC, KC.PAST, KC.P4, KC.P5, KC.P6, KC.PPLS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.EQL, KC.PLUS, KC.LCBR, KC.RCBR, KC.PSLS, KC.P1, KC.P2, KC.P3, KC.PENT, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.NO, KC.NO, KC.LALT, KC.RSFT, SFTGUI, KC.P0, KC.PDOT,
KC.NO, KC.NO, KC.NO, KC.RGUI, KC.RCTL, ALTCTL,
],
Expand Down
4 changes: 2 additions & 2 deletions boards/dactyl_manuform_carbonfet/6x7/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@
KC.TRNS, KC.F13, KC.F14, KC.F15, KC.F16, KC.F17, KC.F18, KC.F19, KC.F20, KC.F21, KC.F22, KC.F23, KC.F24, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.NLCK, KC.P7, KC.P8, KC.P9, KC.PMNS, KC.TRNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.UNDS, KC.MINS, KC.KC.LBRC, KC.KC.RBRC, KC.PAST, KC.P4, KC.P5, KC.P6, KC.PPLS, KC.TRNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.EQL, KC.PLUS, KC.KC.LCBR, KC.KC.RCBR, KC.PSLS, KC.P1, KC.P2, KC.P3, KC.PENT, KC.TRNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.UNDS, KC.MINS, KC.LBRC, KC.RBRC, KC.PAST, KC.P4, KC.P5, KC.P6, KC.PPLS, KC.TRNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.EQL, KC.PLUS, KC.LCBR, KC.RCBR, KC.PSLS, KC.P1, KC.P2, KC.P3, KC.PENT, KC.TRNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.NO, KC.NO, KC.LALT, KC.RSFT, SFTGUI, KC.P0, KC.PDOT,
KC.NO, KC.NO, KC.NO, KC.RGUI, KC.RCTL, ALTCTL,
],
Expand Down
4 changes: 2 additions & 2 deletions boards/dactyl_manuform_mini/5x6/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@
[ #1
KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.NLCK, KC.P7, KC.P8, KC.P9, KC.PMNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.UNDS, KC.MINS, KC.KC.LBRC, KC.KC.RBRC, KC.PAST, KC.P4, KC.P5, KC.P6, KC.PPLS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.EQL, KC.PLUS, KC.KC.LCBR, KC.KC.RCBR, KC.PSLS, KC.P1, KC.P2, KC.P3, KC.PENT, KC.TRNS,
KC.TRNS, KC.TRNS, KC.UNDS, KC.MINS, KC.LBRC, KC.RBRC, KC.PAST, KC.P4, KC.P5, KC.P6, KC.PPLS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.EQL, KC.PLUS, KC.LCBR, KC.RCBR, KC.PSLS, KC.P1, KC.P2, KC.P3, KC.PENT, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.NO, KC.NO, KC.LALT, KC.RSFT, KC.NO, KC.P0, KC.PDOT,
KC.NO, KC.NO, KC.RGUI, KC.RCTL,
],
Expand Down
4 changes: 2 additions & 2 deletions boards/dactyl_manuform_mini/6x6/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
KC.F13, KC.F14, KC.F15, KC.F16, KC.F17, KC.F18, KC.F19, KC.F20, KC.F21, KC.F22, KC.F23, KC.F24,
KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.NLCK, KC.P7, KC.P8, KC.P9, KC.PMNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.UNDS, KC.MINS, KC.KC.LBRC, KC.KC.RBRC, KC.PAST, KC.P4, KC.P5, KC.P6, KC.PPLS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.EQL, KC.PLUS, KC.KC.LCBR, KC.KC.RCBR, KC.PSLS, KC.P1, KC.P2, KC.P3, KC.PENT, KC.TRNS,
KC.TRNS, KC.TRNS, KC.UNDS, KC.MINS, KC.LBRC, KC.RBRC, KC.PAST, KC.P4, KC.P5, KC.P6, KC.PPLS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.EQL, KC.PLUS, KC.LCBR, KC.RCBR, KC.PSLS, KC.P1, KC.P2, KC.P3, KC.PENT, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.NO, KC.NO, KC.LALT, KC.RSFT, KC.NO, KC.P0, KC.PDOT,
KC.NO, KC.NO, KC.RGUI, KC.RCTL,
],
Expand Down
4 changes: 2 additions & 2 deletions boards/dactyl_manuform_mini/6x7/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
KC.TRNS, KC.F13, KC.F14, KC.F15, KC.F16, KC.F17, KC.F18, KC.F19, KC.F20, KC.F21, KC.F22, KC.F23, KC.F24, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.TRNS, KC.NLCK, KC.P7, KC.P8, KC.P9, KC.PMNS, KC.TRNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.UNDS, KC.MINS, KC.KC.LBRC, KC.KC.RBRC, KC.PAST, KC.P4, KC.P5, KC.P6, KC.PPLS, KC.TRNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.EQL, KC.PLUS, KC.KC.LCBR, KC.KC.RCBR, KC.PSLS, KC.P1, KC.P2, KC.P3, KC.PENT, KC.TRNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.UNDS, KC.MINS, KC.LBRC, KC.RBRC, KC.PAST, KC.P4, KC.P5, KC.P6, KC.PPLS, KC.TRNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.EQL, KC.PLUS, KC.LCBR, KC.RCBR, KC.PSLS, KC.P1, KC.P2, KC.P3, KC.PENT, KC.TRNS, KC.TRNS,
KC.TRNS, KC.TRNS, KC.TRNS, KC.NO, KC.NO, KC.LALT, KC.RSFT, KC.NO, KC.P0, KC.PDOT,
KC.NO, KC.NO, KC.RGUI, KC.RCTL,
],
Expand Down
4 changes: 2 additions & 2 deletions boards/ergo_travel/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from kmk.extensions.media_keys import MediaKeys
from kmk.keys import KC
from kmk.modules.layers import Layers
from kmk.modulessplit import Split, SplitSide, SplitType
from kmk.modules.split import Split, SplitSide, SplitType

keyboard = KMKKeyboard()

Expand All @@ -26,7 +26,7 @@
ADJUST = KC.MO(3)

CALTDEL = KC.LCTL(KC.LALT(KC.DEL))
TSKMGR = KC.LCTL(KC.LSFT(KC.KC_ESC))
TSKMGR = KC.LCTL(KC.LSFT(KC.ESC))

keyboard.keymap = [
[ #QWERTY
Expand Down
3 changes: 2 additions & 1 deletion boards/fingerpunch/ffkb/other_pro_micro/kb.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
from kmk.quickpin.pro_micro.boardsource_blok import pinout as pins
from kmk.scanners import DiodeOrientation
from kmk.scanners import intify_coordinate as ic
from kmk.scanners import intify_coordinate

ic = lambda r, c: intify_coordinate(r, c, 8) # 8 columns

class KMKKeyboard(_KMKKeyboard):
col_pins = (
Expand Down
4 changes: 2 additions & 2 deletions boards/fingerpunch/ffkb/other_pro_micro/main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import board

from kb_kb2040 import KMKKeyboard
import kb

from kmk.extensions.media_keys import MediaKeys
from kmk.extensions.rgb import RGB
Expand All @@ -10,7 +10,7 @@
from kmk.modules.layers import Layers
from kmk.modules.mouse_keys import MouseKeys

keyboard = KMKKeyboard()
keyboard = kb.KMKKeyboard()
keyboard.tap_time = 150
keyboard.debug_enabled = False

Expand Down
2 changes: 1 addition & 1 deletion boards/fourtypercentclub/gherkin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

holdtap = HoldTap()
layers = Layers()
led = LED()
led = LED(keyboard.led_pin)
keyboard.extensions = [led]
keyboard.modules = [layers, holdtap]

Expand Down
2 changes: 1 addition & 1 deletion boards/fourtypercentclub/luddite/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
XXXXXXX = KC.NO

rgb = RGB(pixel_pin=keyboard.rgb_pixel_pin, num_pixels=keyboard.rgb_num_pixels)
led = LED()
led = LED(keyboard.led_pin)
layers = Layers()
keyboard.extensions = [rgb, led]
keyboard.modules = [layers]
Expand Down
19 changes: 10 additions & 9 deletions boards/gtips/reviung39/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@
keyboard = KMKKeyboard()

# Adding extensions
rgb = RGB(
pixel_pin=keyboard.rgb_pixel_pin,
num_pixels=keyboard.rgb_num_pixels,
val_limit=100,
hue_default=190,
sat_default=100,
val_default=5,
)
keyboard.extensions = [rgb]
if hasattr(keyboard, 'rgb_pixel_pin'):
rgb = RGB(
pixel_pin=keyboard.rgb_pixel_pin,
num_pixels=keyboard.rgb_num_pixels,
val_limit=100,
hue_default=190,
sat_default=100,
val_default=5,
)
keyboard.extensions = [rgb]

holdtap = HoldTap()
layers = Layers()
Expand Down
7 changes: 5 additions & 2 deletions boards/keebio/iris/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,15 @@
from kmk.keys import KC
from kmk.modules.layers import Layers
from kmk.modules.split import Split, SplitSide, SplitType

from kmk.modules.tapdance import TapDance
keyboard = KMKKeyboard()

keyboard.debug_enabled = False
keyboard.unicode_mode = UnicodeMode.LINUX
keyboard.tap_time = 750

tapdance = TapDance()
tapdance.tap_time = 750
keyboard.modules.append(tapdance)

emoticons = cuss({
# Emojis
Expand Down
2 changes: 1 addition & 1 deletion boards/keebio/levinson/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
# | | | | | | | | | | | |
# `-----------------------------------------------------------------------------------'
[
_______, _______, KC.RGB.TOG, KC.RGB.MOD, KC.RGB.HUD, KC.RGB.HUI, KC.RGB.SAD, KC.RGB.SAI, KC.RGB.VAD, KC.RGB.VAI, _______, KC.DEL,
_______, _______, KC.RGB_TOG, KC.RGB_MOD, KC.RGB_HUD, KC.RGB_HUI, KC.RGB_SAD, KC.RGB_SAI, KC.RGB_VAD, KC.RGB_VAI, _______, KC.DEL,
_______, _______, _______, _______, _______, _______, _______, KC.DF(0), KC.DF(1), KC.DF(2), _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
Expand Down
2 changes: 1 addition & 1 deletion boards/keebio/nyquist/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@
# `-----------------------------------------------------------------------------------'
[
KC.F1, KC.F2, KC.F3, KC.F4, KC.F5, KC.F6, KC.F7, KC.F8, KC.F9, KC.F10, KC.F11, KC.F12,
_______, _______, KC.RGB.TOG, KC.RGB.MOD, KC.RGB.HUD, KC.RGB.HUI, KC.RGB.SAD, KC.RGB.SAI, KC.RGB.VAD, KC.RGB.VAI, _______, KC.DEL,
_______, _______, KC.RGB_TOG, KC.RGB_MOD, KC.RGB_HUD, KC.RGB_HUI, KC.RGB_SAD, KC.RGB_SAI, KC.RGB_VAD, KC.RGB_VAI, _______, KC.DEL,
_______, _______, _______, _______, _______, _______, _______, KC.DF(0), KC.DF(1), KC.DF(2), _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
_______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______, _______,
Expand Down
2 changes: 1 addition & 1 deletion boards/kyria/main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from kyria_v1_rp2040 import KMKKeyboard
from kb_v1 import KMKKeyboard

from kmk.extensions.media_keys import MediaKeys
from kmk.extensions.rgb import RGB, AnimationModes
Expand Down
2 changes: 1 addition & 1 deletion boards/lily58/kb.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class KMKKeyboard(_KMKKeyboard):

# flake8: noqa
# fmt: off
coord_mapping = [
coord_mapping = [
0, 1, 2, 3, 4, 5, 35, 34, 33, 32, 31, 30,
6, 7, 8, 9, 10, 11, 41, 40, 39, 38, 37, 36,
12, 13, 14, 15, 16, 17, 47, 46, 45, 44, 43, 42,
Expand Down
21 changes: 10 additions & 11 deletions boards/lily58/main.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
from kb import KMKKeyboard, rgb_pixel_pin
from kb import KMKKeyboard

from kmk.extensions.ble_split import BLE_Split
from kmk.extensions.layers import Layers
from kmk.modules.split import Split, SplitSide
from kmk.modules.layers import Layers
from kmk.extensions.rgb import RGB
from kmk.keys import KC


keyboard = KMKKeyboard()

# Cleaner key names
Expand All @@ -24,17 +25,15 @@
RGB_VAD = KC.RGB_VAD

# Adding extensions
rgb = RGB(pixel_pin=rgb_pixel_pin, num_pixels=27, val_limit=100, hue_default=190, sat_default=100, val_default=5)
rgb = RGB(pixel_pin=keyboard.rgb_pixel_pin, num_pixels=27, val_limit=100, hue_default=190, sat_default=100, val_default=5)

# TODO Comment one of these on each side
# Left is 0, Right is 1
split_side = 0
split_side = 1
split = BLE_Split(split_side=split_side)

layers = Layers()
split = Split(split_side=SplitSide.LEFT)
split = Split(split_side=SplitSide.RIGHT)

extensions = [layers, split, rgb]
keyboard.modules.append(split)
keyboard.modules.append(Layers())
keyboard.extensions.append(rgb)

keyboard.keymap = [
[ #QWERTY
Expand Down
2 changes: 1 addition & 1 deletion boards/lunakey_pico/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from kb import KMKKeyboard

from kmk.extensions.media_keys import MediaKeys
from kmk.extensions.RGB import RGB, AnimationModes
from kmk.extensions.rgb import RGB, AnimationModes
from kmk.keys import KC
from kmk.modules.holdtap import HoldTap
from kmk.modules.layers import Layers
Expand Down
2 changes: 1 addition & 1 deletion boards/osprette/kb.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import board

from kmk.kmk_keyboard import KMKKeyboard as _KMKKeyboard
from kmk.quickpin.pro_Micro.avr_promicro import translate as avr
from kmk.quickpin.pro_micro.avr_promicro import translate as avr
from kmk.quickpin.pro_micro.boardsource_blok import pinout as pins
from kmk.scanners import DiodeOrientation

Expand Down
4 changes: 2 additions & 2 deletions boards/rhymestone/main.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from kb import KMKKeyboard

from kmk.extensions.layers import Layers
from kmk.extensions.split import Split, SplitSide, SplitType
from kmk.modules.layers import Layers
from kmk.modules.split import Split, SplitSide, SplitType
from kmk.keys import KC

keyboard = KMKKeyboard()
Expand Down
2 changes: 1 addition & 1 deletion boards/scottokeebs/scotto34/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
RS_SLSH = KC.HT(KC.SLSH, KC.RSFT)
TD_ESC_A_C_SL_EMO = KC.TD(
KC.HT(KC.ESC, KC.LALT, prefer_hold=False),
KC.HY(KC.LGUI(KC.SPC), KC.LCTL, prefer_hold=False),
KC.HT(KC.LGUI(KC.SPC), KC.LCTL, prefer_hold=False),
KC.LCTL(KC.LGUI(KC.SPC))
)
LG_SPC = KC.HT(KC.SPC, KC.LGUI)
Expand Down
Loading

0 comments on commit 55a1bb1

Please sign in to comment.