Update q8.

This commit is contained in:
lalalademaxiya1 2022-01-20 09:32:11 +08:00
parent 789bfa0dbf
commit a6273e40c2
3 changed files with 4 additions and 3 deletions

View File

@ -25,8 +25,8 @@
#define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL #define DRIVER_LED_TOTAL DRIVER_1_LED_TOTAL
/* Encoder used pins */ /* Encoder used pins */
#define ENCODERS_PAD_A { B5 } #define ENCODERS_PAD_A { B4 }
#define ENCODERS_PAD_B { B4 } #define ENCODERS_PAD_B { B5 }
/* Specifies the number of pulses the encoder registers between each detent */ /* Specifies the number of pulses the encoder registers between each detent */
#define ENCODER_RESOLUTION 4 #define ENCODER_RESOLUTION 4

View File

@ -75,6 +75,7 @@ const ckled2001_led PROGMEM g_ckled2001_leds[DRIVER_LED_TOTAL] = {
{0, F_10, D_10, E_10}, {0, F_10, D_10, E_10},
{0, F_6, D_6, E_6}, {0, F_6, D_6, E_6},
{0, F_5, D_5, E_5}, {0, F_5, D_5, E_5},
{0, F_4, D_4, E_4},
{0, F_3, D_3, E_3}, {0, F_3, D_3, E_3},
{0, F_2, D_2, E_2}, {0, F_2, D_2, E_2},
{0, C_4, A_4, B_4} {0, C_4, A_4, B_4}

View File

@ -49,7 +49,7 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) {
return true; return true;
case KC_J: case KC_J:
case KC_Z: case RGB_RMOD:
if (key_count_flag && record->event.pressed) { if (key_count_flag && record->event.pressed) {
key_count += 1; key_count += 1;
if(key_count == 3) { if(key_count == 3) {