Update v8

This commit is contained in:
lalalademaxiya1 2022-08-17 15:36:19 +09:00
parent 110c5c67d2
commit 22ccdc5583
14 changed files with 24 additions and 15 deletions

View File

@ -43,7 +43,7 @@
/* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */ /* Scan phase of led driver set as MSKPHASE_9CHANNEL(defined as 0x03 in CKLED2001.h) */
#define SCAN_PHASE_CHANNEL MSKPHASE_9CHANNEL #define SCAN_PHASE_CHANNEL MSKPHASE_9CHANNEL
#define CONSTANT_CURRENT_STEP \ #define CONSTANT_CURRENT_STEP \
{ 0xCA, 0xCA, 0x60, 0xCA, 0xCA, 0x60, 0xCA, 0xCA, 0x60, 0xCA, 0xCA, 0x60 } { 0xF8, 0xF8, 0x80, 0xF8, 0xF8, 0x80, 0xF8, 0xF8, 0x80, 0xF8, 0xF8, 0x80 }
/* DIP switch */ /* DIP switch */
#define DIP_SWITCH_MATRIX_GRID { {4,4} } #define DIP_SWITCH_MATRIX_GRID { {4,4} }

View File

@ -34,7 +34,7 @@ bool dip_switch_update_kb(uint8_t index, bool active) {
return true; return true;
} }
#endif #endif // DIP_SWITCH_ENABLE
#if defined(RGB_MATRIX_ENABLE) && defined(CAPS_LOCK_LED_INDEX) #if defined(RGB_MATRIX_ENABLE) && defined(CAPS_LOCK_LED_INDEX)
@ -107,4 +107,4 @@ bool led_update_kb(led_t led_state) {
return res; return res;
} }
#endif #endif // CAPS_LOCK_LED_INDEX

View File

@ -132,4 +132,4 @@ led_config_t g_led_config = {
} }
}; };
#endif #endif // RGB_MATRIX_ENABLE

View File

@ -133,4 +133,4 @@ led_config_t g_led_config = {
} }
}; };
#endif #endif // RGB_MATRIX_ENABLE

View File

@ -115,3 +115,6 @@
#define ENABLE_RGB_MATRIX_SOLID_SPLASH #define ENABLE_RGB_MATRIX_SOLID_SPLASH
#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH #define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
// #define RGB_MATRIX_KEYPRESSES // #define RGB_MATRIX_KEYPRESSES
/* Enable receive custom command from host */
#define RAW_HID_CMD 0xAB

View File

@ -34,7 +34,7 @@ bool dip_switch_update_kb(uint8_t index, bool active) {
return true; return true;
} }
#endif #endif // DIP_SWITCH_ENABLE
#if defined(RGB_MATRIX_ENABLE) && defined(CAPS_LOCK_LED_INDEX) #if defined(RGB_MATRIX_ENABLE) && defined(CAPS_LOCK_LED_INDEX)

View File

@ -23,6 +23,8 @@ RAW_ENABLE = yes
LTO_ENABLE = yes LTO_ENABLE = yes
EEPROM_DRIVER = wear_leveling EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = embedded_flash WEAR_LEVELING_DRIVER = embedded_flash
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = embedded_flash
# OLED_ENABLE = yes # OLED_ENABLE = yes
# Enter lower-power sleep mode when on the ChibiOS idle thread # Enter lower-power sleep mode when on the ChibiOS idle thread

View File

@ -23,6 +23,8 @@ RGB_MATRIX_ENABLE = yes
RGB_MATRIX_DRIVER = CKLED2001 RGB_MATRIX_DRIVER = CKLED2001
RAW_ENABLE = yes RAW_ENABLE = yes
LTO_ENABLE = yes LTO_ENABLE = yes
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = embedded_flash
# 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

View File

@ -18,7 +18,7 @@
/* USB Device descriptor parameter */ /* USB Device descriptor parameter */
#define PRODUCT_ID 0x0382 #define PRODUCT_ID 0x0382
#define DEVICE_VER 0x0101 #define DEVICE_VER 0x0100
/* RGB Matrix Configuration */ /* RGB Matrix Configuration */
#define DRIVER_1_LED_TOTAL 35 #define DRIVER_1_LED_TOTAL 35

View File

@ -16,13 +16,13 @@ NKRO_ENABLE = yes # Enable USB N-key Rollover
BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow RGBLIGHT_ENABLE = no # Enable keyboard RGB underglow
AUDIO_ENABLE = no # Audio output AUDIO_ENABLE = no # Audio output
ENCODER_ENABLE = no # Enable Encoder
ENCODER_MAP_ENABLE = no
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 RAW_ENABLE = yes
LTO_ENABLE = yes LTO_ENABLE = yes
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = embedded_flash
# 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

View File

@ -18,7 +18,7 @@
/* USB Device descriptor parameter */ /* USB Device descriptor parameter */
#define PRODUCT_ID 0x0383 #define PRODUCT_ID 0x0383
#define DEVICE_VER 0x0101 #define DEVICE_VER 0x0100
/* RGB Matrix Configuration */ /* RGB Matrix Configuration */
#define DRIVER_1_LED_TOTAL 35 #define DRIVER_1_LED_TOTAL 35

View File

@ -23,6 +23,8 @@ RGB_MATRIX_ENABLE = yes
RGB_MATRIX_DRIVER = CKLED2001 RGB_MATRIX_DRIVER = CKLED2001
RAW_ENABLE = yes RAW_ENABLE = yes
LTO_ENABLE = yes LTO_ENABLE = yes
EEPROM_DRIVER = wear_leveling
WEAR_LEVELING_DRIVER = embedded_flash
# 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

View File

@ -130,7 +130,7 @@ led_config_t g_led_config = {
} }
}; };
#endif #endif // RGB_MATRIX_ENABLE
#ifdef ENCODER_ENABLE #ifdef ENCODER_ENABLE
@ -146,6 +146,7 @@ bool encoder_update_kb(uint8_t index, bool clockwise) {
return true; return true;
} }
# if defined(PAL_USE_CALLBACKS) # if defined(PAL_USE_CALLBACKS)
void encoder0_pad_cb(void *param) { void encoder0_pad_cb(void *param) {
(void)param; (void)param;
@ -160,6 +161,5 @@ void keyboard_post_init_kb(void) {
palSetLineCallback(encoders_pad_a[0], encoder0_pad_cb, NULL); palSetLineCallback(encoders_pad_a[0], encoder0_pad_cb, NULL);
palSetLineCallback(encoders_pad_b[0], encoder0_pad_cb, NULL); palSetLineCallback(encoders_pad_b[0], encoder0_pad_cb, NULL);
} }
#endif # endif // PAL_USE_CALLBACKS
#endif #endif // ENCODER_ENABLE