Merge remote-tracking branch 'upstream/master' into develop

This commit is contained in:
fauxpark 2023-02-19 04:35:43 +11:00
commit 022cdb605e
3 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,29 @@
/* Copyright (C) 2022 jonylee@hfd
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include QMK_KEYBOARD_H
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[0] = LAYOUT( /* Base */
RGB_MOD, KC_LCTL, KC_ENT,KC_NO,KC_NO),
[1] = LAYOUT(
RGB_MOD, KC_LCTL, KC_ENT,KC_NO,KC_NO),
[2] = LAYOUT(
RGB_MOD, KC_LCTL, KC_ENT,KC_NO,KC_NO),
[3] = LAYOUT(
RGB_MOD, KC_LCTL, KC_ENT,KC_NO,KC_NO)
};

View file

@ -0,0 +1 @@
VIA_ENABLE = yes

View file

@ -48,3 +48,25 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
) )
}; };
void keyboard_pre_init_user() {
writePin(LED1, true);
writePin(LED2, true);
}
void keyboard_post_init_user() {
writePin(LED1, false);
writePin(LED2, false);
}
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
writePin(LED1, record->event.pressed);
return true;
}
layer_state_t layer_state_set_user(layer_state_t state) {
writePin(LED2, state);
return state;
}