initial attempt at qmk user space for tidbit

This commit is contained in:
KemoNine 2022-01-21 22:51:43 -05:00
parent ee4c99e837
commit 807a9a7df3
3 changed files with 53 additions and 20 deletions

View File

@ -0,0 +1,48 @@
#include QMK_KEYBOARD_H
#ifdef KEYBOARD_tidbit
/**** Override Defalt keymap completely *****/
bool encoder_update_user(uint8_t index, bool clockwise) {
if (clockwise) {
tap_code(KC_VOLU);
} else {
tap_code(KC_VOLD);
}
return true;
}
#define _BASE 0
#define _FUNC 1
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[_BASE] = LAYOUT(
TO(_FUNC), KC_NO, KC_KP_SLASH,
KC_KP_7, KC_KP_8, KC_KP_9, KC_KP_ASTERISK,
KC_KP_4, KC_KP_5, KC_KP_6, KC_KP_MINUS,
KC_KP_1, KC_KP_2, KC_KP_3, KC_KP_PLUS,
KC_NO, KC_KP_0, KC_KP_DOT, KC_KP_ENTER
),
[_FUNC] = LAYOUT(
TO(_BASE), PROG, KC_NO,
KC_NO, KC_NO, RGB_MOD, KC_NO,
KC_NO, KC_NO, RGB_HUI, KC_NO,
KC_NO, KC_NO, RGB_SAI, KC_NO,
KC_NO, KC_NO, RGB_VAI, KC_NO
),
};
/***** Nuke unneeded functionality *****/
void matrix_init_user(void) {
}
void matrix_scan_user(void) {
}
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
return true;
}
#endif

View File

@ -1,16 +1,14 @@
#pragma once
/**** TAP HOLD *****/
/**** TAP HOLD ****
#define TAPPING_TOGGLE 2
#define PERMISSIVE_HOLD
#define TAPPING_FORCE_HOLD
#define TAPPING_TERM 100
/**** END TAP HOLD *****/
/******** MOUSE KEYS ***********/
/******** MOUSE KEYS **********
#define MK_KINETIC_SPEED
#define MOUSEKEY_DELAY 16
#define MOUSEKEY_MOVE_DELTA 10
#define MOUSEKEY_INITIAL_SPEED 10

View File

@ -17,6 +17,7 @@ VELOCIKEY_ENABLE = no
VIA_ENABLE = no
WPM_ENABLE = no
BACKLIGHT_ENABLE = no
ENCODER_ENABLE = yes
BOOTLOADER = qmk-dfu
@ -26,20 +27,6 @@ LTO_ENABLE = yes
SRC += kemonine.c
ifeq ($(KEYBOARD), $(filter $(KEYBOARD), reviung39 reviung41))
RGBLIGHT_ENABLE = yes
SRC += boards/reviung41.c
ifeq ($(KEYBOARD), nullbitsco/tidbit)
SRC += boards/tidbit.c
endif
ifeq ($(KEYBOARD), crkbd/rev1)
SPLIT_KEYBOARD = yes
RGBLIGHT_ENABLE = no
RGB_MATRIX_ENABLE = no
endif
ifeq ($(KEYBOARD), keebio/iris/rev4)
RGBLIGHT_ENABLE = yes
SPLIT_KEYBOARD = yes
SRC += boards/iris.c
endif