xxxxxxx = KC.NO HELLA_TD = KC.TD( KC.A, KC.B, send_string('macros in a tap dance? I think yes'), KC.TG(1), ) rgb_ext = RGB(pixel_pin=keyboard.rgb_pixel_pin, num_pixels=keyboard.rgb_num_pixels) layers_ext = Layers() # TODO Comment one of these on each side split_side = SplitSide.LEFT split_side = SplitSide.RIGHT split = Split(split_type=SplitType.BLE, split_side=split_side) keyboard.extensions = [rgb_ext] keyboard.modules = [split, layers_ext] keyboard.keymap = [ [ KC.GESC, KC.N1, KC.N2, KC.N3, KC.N4, KC.N5, KC.N6, KC.N7, KC.N8,
from kmk.extensions.rgb import RGB from kmk.handlers.sequences import send_string, simple_key_sequence from kmk.keys import KC from kmk.modules.layers import Layers from kmk.modules.modtap import ModTap from kmk.modules.split import Split keyboard = KMKKeyboard() # ------------------User level config variables --------------------------------------- keyboard.tap_time = 150 layers = Layers() modtap = ModTap() rgb_ext = RGB(pixel_pin=keyboard.rgb_pixel_pin, num_pixels=27, val_limit=100, hue_default=190, sat_default=100, val_default=5) split = Split() keyboard.modules = [modtap, layers, split] keyboard.extensions = [rgb_ext] _______ = KC.TRNS XXXXXXX = KC.NO SHFT_INS = KC.LSHIFT(KC.INS) BASE = KC.DF(0) GAMING = KC.DF(1) LT1_SP = KC.MO(2) LT2_SP = KC.LT(3, KC.SPC) TAB_SB = KC.LT(5, KC.TAB) SUPER_L = KC.LM(4, KC.LGUI)
from kb import KMKKeyboard from kmk.consts import UnicodeMode from kmk.handlers.sequences import compile_unicode_string_sequences as cuss from kmk.handlers.sequences import send_string from kmk.keys import KC from kmk.modules.layers import Layers from kmk.modules.split import Split, SplitType keyboard = KMKKeyboard() layers_ext = Layers() split = Split(split_type=SplitType.UART) keyboard.modules = [layers_ext, split] keyboard.debug_enabled = False keyboard.unicode_mode = UnicodeMode.LINUX keyboard.tap_time = 750 emoticons = cuss({ # Emojis 'BEER': r'🍺', 'BEER_TOAST': r'🍻', 'FACE_CUTE_SMILE': r'😊', 'FACE_HEART_EYES': r'😍', 'FACE_JOY': r'😂', 'FACE_SWEAT_SMILE': r'😅', 'FACE_THINKING': r'🤔', 'FIRE': r'🔥', 'FLAG_CA': r'🇨🇦', 'FLAG_US': r'🇺🇸', 'HAND_CLAP': r'👏', 'HAND_HORNS': r'🤘',
from kmk.extensions.rgb import RGB, AnimationModes from kmk.keys import KC from kmk.modules.encoder import EncoderHandler from kmk.modules.layers import Layers from kmk.modules.modtap import ModTap from kmk.modules.split import Split, SplitType keyboard = KMKKeyboard() keyboard.debug_enabled = True keyboard.modules.append(Layers()) keyboard.modules.append(ModTap()) keyboard.extensions.append(MediaKeys()) # Using drive names (KYRIAL, KYRIAR) to recognize sides; use split_side arg if you're not doing it split = Split(split_type=SplitType.UART, use_pio=True) keyboard.modules.append(split) # Uncomment below if you're using encoder encoder_handler = EncoderHandler() encoder_handler.pins = ((keyboard.encoder_pin_0, keyboard.encoder_pin_1, None, False), ) # Uncomment below if you're having RGB rgb_ext = RGB( pixel_pin=keyboard.rgb_pixel_pin, num_pixels=10, animation_mode=AnimationModes.BREATHING_RAINBOW, ) keyboard.extensions.append(rgb_ext)
keyboard = KMKKeyboard() keyboard.tap_time = 100 layers_ext = Layers() modtap_ext = ModTap() # TODO Comment one of these on each side split_side = SplitSide.LEFT split_side = SplitSide.RIGHT data_pin = board.GP1 if split_side == SplitSide.LEFT else board.GP0 data_pin2 = board.GP0 if split_side == SplitSide.LEFT else board.GP1 split = Split(split_side=split_side, split_type=SplitType.UART, split_flip=True, data_pin=data_pin, data_pin2=data_pin2) rgb_ext = RGB(pixel_pin=board.GP6, num_pixels=6, animation_mode=AnimationModes.BREATHING_RAINBOW) keyboard.modules = [layers_ext, modtap_ext, split] keyboard.extensions.append(rgb_ext) if split_side == SplitSide.LEFT: buzzer = pwmio.PWMOut(board.GP8, variable_frequency=True) OFF = 0 ON = 2**15 buzzer.duty_cycle = ON
from kb import KMKKeyboard from kmk.consts import UnicodeMode from kmk.handlers.sequences import compile_unicode_string_sequences as cuss from kmk.handlers.sequences import send_string from kmk.keys import KC from kmk.modules.layers import Layers from kmk.modules.split import Split, SplitType keyboard = KMKKeyboard() layers_ext = Layers() keyboard.debug_enabled = False split = Split(split_type=SplitType.UART, debug_enabled=keyboard.debug_enabled) keyboard.modules = [layers_ext, split] keyboard.unicode_mode = UnicodeMode.LINUX keyboard.tap_time = 750 emoticons = cuss({ # Emojis 'BEER': r'🍺', 'BEER_TOAST': r'🍻', 'FACE_CUTE_SMILE': r'😊', 'FACE_HEART_EYES': r'😍', 'FACE_JOY': r'😂', 'FACE_SWEAT_SMILE': r'😅', 'FACE_THINKING': r'🤔', 'FIRE': r'🔥', 'FLAG_CA': r'🇨🇦', 'FLAG_US': r'🇺🇸', 'HAND_CLAP': r'👏',
from kb import KMKKeyboard from kmk.keys import KC from kmk.modules.encoder import EncoderHandler from kmk.modules.layers import Layers from kmk.modules.split import Split, SplitType keyboard = KMKKeyboard() layers_ext = Layers() split = Split( split_flip=True, # If both halves are the same, but flipped, set this True split_type=SplitType.UART, # Defaults to UART uart_interval=20, # Sets the uarts delay. Lower numbers draw more power data_pin=board. RX, # The primary data pin to talk to the secondary device with data_pin2=board.TX, # Second uart pin to allow 2 way communication use_pio=True, # allows for UART to be used with PIO ) keyboard.modules = [layers_ext, split] # Cleaner key names XXXXXXX = KC.NO UNDO = KC.LCTL(KC.Z) CUT = KC.LCTL(KC.X) COPY = KC.LCTL(KC.C) PASTE = KC.LCTL(KC.V) LSTRT = KC.LCTL(KC.HOME) LEND = KC.LCTL(KC.END)