mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-27 11:06:37 +06:00
Update iso version of q7
This commit is contained in:
parent
c2fa4da7d9
commit
8bda07f6ff
|
@ -15,6 +15,7 @@
|
|||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
#include "test.h"
|
||||
|
||||
enum layers{
|
||||
MAC_BASE,
|
||||
|
@ -90,6 +91,7 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
|||
};
|
||||
|
||||
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
||||
process_other_record(keycode, record);
|
||||
switch (keycode) {
|
||||
case KC_MCTL:
|
||||
if (record->event.pressed) {
|
||||
|
@ -131,3 +133,12 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
|
|||
return true; // Process all other keycodes normally
|
||||
}
|
||||
}
|
||||
|
||||
void matrix_scan_user(void) {
|
||||
timer_task_start();
|
||||
}
|
||||
|
||||
bool dip_switch_update_user(uint8_t index, bool active) {
|
||||
system_switch_state_report(index, active);
|
||||
return true;
|
||||
}
|
||||
|
|
|
@ -15,9 +15,7 @@
|
|||
*/
|
||||
|
||||
#include QMK_KEYBOARD_H
|
||||
#ifdef RGB_MATRIX_ENABLE
|
||||
# include "test.h"
|
||||
#endif
|
||||
#include "test.h"
|
||||
|
||||
enum layers{
|
||||
MAC_BASE,
|
||||
|
|
|
@ -20,10 +20,9 @@ ENCODER_ENABLE = no # Enable Encoder
|
|||
DIP_SWITCH_ENABLE = yes
|
||||
RGB_MATRIX_ENABLE = yes
|
||||
RGB_MATRIX_DRIVER = CKLED2001
|
||||
RAW_ENABLE = yes
|
||||
|
||||
# Enter lower-power sleep mode when on the ChibiOS idle thread
|
||||
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
|
||||
|
||||
ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes)
|
||||
SRC += test.c
|
||||
endif
|
||||
SRC += test.c
|
||||
|
|
Loading…
Reference in New Issue
Block a user