mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-24 18:25:01 +06:00
Update q0.
This commit is contained in:
parent
2bc2758eff
commit
bffb7be4bd
@ -16,18 +16,18 @@
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum layers { _BASE, _LIGHT, _RESERVED };
|
||||
enum layers { _BASE, _FN1, _RESERVED1, _RESERVED2 };
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] = LAYOUT_numpad_6x4(
|
||||
MO(_LIGHT), KC_ESC, KC_BSPACE, KC_TAB,
|
||||
MO(_FN1), KC_ESC, KC_BSPACE, KC_TAB,
|
||||
KC_NUMLOCK, KC_PSLS, KC_PAST, KC_PMNS,
|
||||
KC_P7, KC_P8, KC_P9,
|
||||
KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||
KC_P1, KC_P2, KC_P3,
|
||||
KC_P0, KC_PDOT, KC_PENT),
|
||||
|
||||
[_LIGHT] = LAYOUT_numpad_6x4(
|
||||
[_FN1] = LAYOUT_numpad_6x4(
|
||||
KC_TRNS, KC_MUTE, KC_VOLD, KC_VOLU,
|
||||
RGB_MOD, RGB_VAI, RGB_HUI, KC_DEL,
|
||||
RGB_RMOD, RGB_VAD, RGB_HUD,
|
||||
@ -35,12 +35,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
RGB_SAD, RGB_SPD, KC_MPLY,
|
||||
RGB_TOG, KC_MNXT, KC_TRNS),
|
||||
|
||||
[_RESERVED] = LAYOUT_numpad_6x4(
|
||||
[_RESERVED1] = LAYOUT_numpad_6x4(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS),
|
||||
|
||||
[_RESERVED2] = LAYOUT_numpad_6x4(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS)
|
||||
};
|
||||
|
||||
|
@ -16,18 +16,18 @@
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
|
||||
enum layers { _BASE, _LIGHT, _RESERVED };
|
||||
enum layers { _BASE, _FN1, _RESERVED1, _RESERVED2 };
|
||||
|
||||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
[_BASE] = LAYOUT_numpad_6x4(
|
||||
MO(_LIGHT), KC_ESC, KC_BSPACE, KC_TAB,
|
||||
MO(_FN1), KC_ESC, KC_BSPACE, KC_TAB,
|
||||
KC_NUMLOCK, KC_PSLS, KC_PAST, KC_PMNS,
|
||||
KC_P7, KC_P8, KC_P9,
|
||||
KC_P4, KC_P5, KC_P6, KC_PPLS,
|
||||
KC_P1, KC_P2, KC_P3,
|
||||
KC_P0, KC_PDOT, KC_PENT),
|
||||
|
||||
[_LIGHT] = LAYOUT_numpad_6x4(
|
||||
[_FN1] = LAYOUT_numpad_6x4(
|
||||
KC_TRNS, KC_MUTE, KC_VOLD, KC_VOLU,
|
||||
RGB_MOD, RGB_VAI, RGB_HUI, KC_DEL,
|
||||
RGB_RMOD, RGB_VAD, RGB_HUD,
|
||||
@ -35,12 +35,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||
RGB_SAD, RGB_SPD, KC_MPLY,
|
||||
RGB_TOG, KC_MNXT, KC_TRNS),
|
||||
|
||||
[_RESERVED] = LAYOUT_numpad_6x4(
|
||||
[_RESERVED1] = LAYOUT_numpad_6x4(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS),
|
||||
|
||||
[_RESERVED2] = LAYOUT_numpad_6x4(
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS,
|
||||
KC_TRNS, KC_TRNS, KC_TRNS)
|
||||
};
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
#include "eeconfig.h"
|
||||
|
||||
#define _LIGHT 1
|
||||
#define _FN1 1
|
||||
|
||||
enum colors { WHITE, RED, GREEN, BLUE };
|
||||
enum colors led_color_status = WHITE;
|
||||
@ -25,7 +25,7 @@ void clear_eeprom(void);
|
||||
|
||||
bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
|
||||
switch (keycode) {
|
||||
case MO(_LIGHT):
|
||||
case MO(_FN1):
|
||||
if (record->event.pressed) {
|
||||
key_press += 1;
|
||||
key_count += 1;
|
||||
|
Loading…
Reference in New Issue
Block a user