Update iso version of q7

This commit is contained in:
lalalademaxiya1 2022-03-04 14:30:29 +08:00
parent c2fa4da7d9
commit 8bda07f6ff
3 changed files with 14 additions and 6 deletions

View File

@ -15,6 +15,7 @@
*/ */
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
#include "test.h"
enum layers{ enum layers{
MAC_BASE, 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) { bool process_record_user(uint16_t keycode, keyrecord_t *record) {
process_other_record(keycode, record);
switch (keycode) { switch (keycode) {
case KC_MCTL: case KC_MCTL:
if (record->event.pressed) { 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 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;
}

View File

@ -15,9 +15,7 @@
*/ */
#include QMK_KEYBOARD_H #include QMK_KEYBOARD_H
#ifdef RGB_MATRIX_ENABLE #include "test.h"
# include "test.h"
#endif
enum layers{ enum layers{
MAC_BASE, MAC_BASE,

View File

@ -20,10 +20,9 @@ ENCODER_ENABLE = no # Enable Encoder
DIP_SWITCH_ENABLE = yes DIP_SWITCH_ENABLE = yes
RGB_MATRIX_ENABLE = yes RGB_MATRIX_ENABLE = yes
RGB_MATRIX_DRIVER = CKLED2001 RGB_MATRIX_DRIVER = CKLED2001
RAW_ENABLE = yes
# Enter lower-power sleep mode when on the ChibiOS idle thread # Enter lower-power sleep mode when on the ChibiOS idle thread
OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE OPT_DEFS += -DCORTEX_ENABLE_WFI_IDLE=TRUE
ifeq ($(strip $(RGB_MATRIX_ENABLE)), yes) SRC += test.c
SRC += test.c
endif