1
0
Fork 0

Migrate boston_meetup/2019 away from QWIIC_DRIVERS (#14413)

This commit is contained in:
Joel Challis 2021-09-13 15:00:17 +01:00 committed by GitHub
parent cb4346edb7
commit 219d955787
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 67 additions and 223 deletions

View file

@ -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