Migrate boston_meetup/2019 away from QWIIC_DRIVERS (#14413)
This commit is contained in:
@@ -13,10 +13,8 @@ enum custom_layers {
|
||||
};
|
||||
|
||||
enum custom_keycodes {
|
||||
BASE = SAFE_RANGE,
|
||||
LOWER,
|
||||
LOWER = SAFE_RANGE,
|
||||
RAISE,
|
||||
KC_DEMOMACRO
|
||||
};
|
||||
|
||||
// Custom macros
|
||||
@@ -27,7 +25,6 @@ enum custom_keycodes {
|
||||
// Requires KC_TRNS/_______ for the trigger key in the destination layer
|
||||
#define LT_MC(kc) LT(_MOUSECURSOR, kc) // L-ayer T-ap M-ouse C-ursor
|
||||
#define LT_RAI(kc) LT(_RAISE, kc) // L-ayer T-ap to Raise
|
||||
#define DEMOMACRO KC_DEMOMACRO // Sample for macros
|
||||
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
@@ -115,14 +112,6 @@ layer_state_t layer_state_set_user(layer_state_t state) {
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case KC_DEMOMACRO:
|
||||
if (record->event.pressed) {
|
||||
// when keycode KC_DEMOMACRO is pressed
|
||||
SEND_STRING("QMK is the best thing ever!");
|
||||
} else {
|
||||
// when keycode KC_DEMOMACRO is released
|
||||
}
|
||||
break;
|
||||
case LOWER:
|
||||
if (record->event.pressed) {
|
||||
//not sure how to have keyboard check mode and set it to a variable, so my work around
|
||||
|
Reference in New Issue
Block a user