diff --git a/keyboards/keychron/q0/base/keymaps/adophoxia/adophoxia.c b/keyboards/keychron/q0/base/keymaps/adophoxia/adophoxia.c
new file mode 100644
index 0000000000..8e39e55b1a
--- /dev/null
+++ b/keyboards/keychron/q0/base/keymaps/adophoxia/adophoxia.c
@@ -0,0 +1,143 @@
+/* Copyright 2023 @Adophoxia
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see .
+*/
+
+#include QMK_KEYBOARD_H
+#include "adophoxia.h"
+
+void keyboard_post_init_user(void) {
+ // Customise these values to desired behaviour
+ debug_enable=true;
+ debug_matrix=true;
+ //debug_keyboard=true;
+ //debug_mouse=true;
+}
+
+bool shutdown_user(bool jump_to_bootloader) {
+ if (jump_to_bootloader) {
+ // turn off LEDs for bootloader
+ rgb_matrix_set_color_all(RGB_OFF);
+ }
+ void rgb_matrix_update_pwm_buffers(void);
+ // force flushing -- otherwise will never happen
+ rgb_matrix_update_pwm_buffers();
+ // false to not process kb level
+ return false;
+}
+
+bool is_base_active = true;
+#define BASE_LAYER _BASE
+uint16_t base_layer_timer = 0;
+
+layer_state_t layer_state_set_user(layer_state_t state) {
+ switch (get_highest_layer(state)) {
+ case _BASE:
+
+ break;
+ case _FN1 && _FN2
+ if (current_layer > _BASE) {
+ is_base_active = false;
+ }
+ break;
+ default:
+ // Reset back to the current profile
+ ap2_led_reset_foreground_color();
+ break;
+ }
+ return state;
+}
+
+
+
+
+
+bool is_base_active = false;
+#define LAYER_BASE 0
+uint16_t base_layer_timer = 0;
+
+uint8_t current_layer = get_highest_layer(layer_state);
+
+if (current_layer > LAYER_BASE) {
+ return false;
+}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+#### Super ALT↯TAB
+
+This macro will register `KC_LALT` and tap `KC_TAB`, then wait for 1000ms. If the key is tapped again, it will send another `KC_TAB`; if there is no tap, `KC_LALT` will be unregistered, thus allowing you to cycle through windows.
+
+```c
+bool is_alt_tab_active = false; // ADD this near the beginning of keymap.c
+uint16_t alt_tab_timer = 0; // we will be using them soon.
+
+enum custom_keycodes { // Make sure have the awesome keycode ready
+ ALT_TAB = SAFE_RANGE,
+};
+
+bool process_record_user(uint16_t keycode, keyrecord_t *record) {
+ switch (keycode) { // This will do most of the grunt work with the keycodes.
+ case ALT_TAB:
+ if (record->event.pressed) {
+ if (!is_alt_tab_active) {
+ is_alt_tab_active = true;
+ register_code(KC_LALT);
+ }
+ alt_tab_timer = timer_read();
+ register_code(KC_TAB);
+ } else {
+ unregister_code(KC_TAB);
+ }
+ break;
+ }
+ return true;
+}
+
+void matrix_scan_user(void) { // The very important timer.
+ if (is_alt_tab_active) {
+ if (timer_elapsed(alt_tab_timer) > 1000) {
+ unregister_code(KC_LALT);
+ is_alt_tab_active = false;
+ }
+ }
+}
+```
\ No newline at end of file
diff --git a/keyboards/keychron/q0/base/keymaps/adophoxia/adophoxia.h b/keyboards/keychron/q0/base/keymaps/adophoxia/adophoxia.h
new file mode 100644
index 0000000000..37b5c0c857
--- /dev/null
+++ b/keyboards/keychron/q0/base/keymaps/adophoxia/adophoxia.h
@@ -0,0 +1,19 @@
+/* Copyright 2023 @Adophoxia
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see .
+*/
+
+#pragma once
+
+enum layers { _BASE, _FN1, _FN2};
\ No newline at end of file
diff --git a/keyboards/keychron/q0/base/keymaps/adophoxia/config.h b/keyboards/keychron/q0/base/keymaps/adophoxia/config.h
new file mode 100644
index 0000000000..5cc6125d94
--- /dev/null
+++ b/keyboards/keychron/q0/base/keymaps/adophoxia/config.h
@@ -0,0 +1,24 @@
+/* Copyright 2023 @Adophoxia
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see .
+*/
+
+#pragma once
+
+#ifdef RGB_MATRIX_ENABLE
+ #define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_BREATHING
+ #define RGB_MATRIX_DEFAULT_HUE 160
+#endif
+
+#define DEBUG_MATRIX_SCAN_RATE
\ No newline at end of file
diff --git a/keyboards/keychron/q0/base/keymaps/adophoxia/indicators.c b/keyboards/keychron/q0/base/keymaps/adophoxia/indicators.c
new file mode 100644
index 0000000000..2a5d77b6fa
--- /dev/null
+++ b/keyboards/keychron/q0/base/keymaps/adophoxia/indicators.c
@@ -0,0 +1,88 @@
+/* Copyright 2023 @Adophoxia
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see .
+*/
+
+#pragma once
+#include "indicators.h"
+#include "lib/lib8tion/lib8tion.h"
+
+#define ARRAYSIZE(arr) sizeof(arr)/sizeof(arr[0])
+
+uint8_t numlock_arrows[] = {
+ 9, 11, 13, 16
+};
+
+uint8_t fn_keys[] = {
+ 4, 5, 6,
+ 8, 9, 10,
+ 11, 12, 13,
+ 15, 16, 17
+};
+
+uint8_t fn2_modifiers_keys[] = {
+ 1, 2, 3
+};
+
+/*
+ { 0, 1, 2, 3 },
+ { 4, 5, 6, 7 },
+ { 8, 9, 10, 14 },
+ { 11, 12, 13, __ },
+ { 15, 16, 17, 20 },
+ { 18, __, 19, __ }
+*/
+
+void numlock_arrows_indicators() {
+ if (!host_keyboard_led_state().num_lock) {
+ for (uint8_t i = 0; i < ARRAYSIZE(numlock_arrows); i++) {
+ rgb_matrix_set_color(numlock_arrows[i], RGB_BLUE);
+ }
+ rgb_matrix_set_color(NUM_LOCK_LED_INDEX, RGB_WHITE);
+ } else {
+ if (!rgb_matrix_get_flags()) {
+ rgb_matrix_set_color(NUM_LOCK_LED_INDEX, RGB_BLACK);
+ }
+ }
+}
+
+void fn_keys_indicators() {
+ for (uint8_t i = 0; i < ARRAYSIZE(fn_keys); i++) {
+ rgb_matrix_set_color(fn_keys[i], RGB_PURPLE);
+ }
+}
+
+void fn2_modifiers() {
+ for (uint8_t i = 0; i < ARRAYSIZE(fn2_modifiers_keys); i++) {
+ rgb_matrix_set_color(fn2_modifiers_keys[i], RGB_PINK);
+ }
+}
+
+bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
+ switch (get_highest_layer(layer_state)) {
+ case _BASE:
+ numlock_arrows_indicators();
+ rgb_matrix_set_color(0, RGB_RED);
+ break;
+ case _FN1:
+ fn_keys_indicators();
+ fn2_modifiers();
+ rgb_matrix_set_color(0, RGB_GREEN);
+ break;
+ case _FN2:
+ rgb_matrix_set_color(0, RGB_BLUE);
+ break;
+ }
+ return false;
+}
\ No newline at end of file
diff --git a/keyboards/keychron/q0/base/keymaps/adophoxia/indicators.h b/keyboards/keychron/q0/base/keymaps/adophoxia/indicators.h
new file mode 100644
index 0000000000..cc563a0d74
--- /dev/null
+++ b/keyboards/keychron/q0/base/keymaps/adophoxia/indicators.h
@@ -0,0 +1,21 @@
+/* Copyright 2023 @Adophoxia
+
+This program is free software: you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation, either version 2 of the License, or
+(at your option) any later version.
+
+This program is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with this program. If not, see .
+*/
+
+#pragma once
+
+void numlock_arrows_indicators(void);
+void fn_keys_indicators(void);
+void fn2_modifiers(void);
\ No newline at end of file
diff --git a/keyboards/keychron/q0/base/keymaps/adophoxia/keymap.c b/keyboards/keychron/q0/base/keymaps/adophoxia/keymap.c
index ba85342992..3c53ed8510 100644
--- a/keyboards/keychron/q0/base/keymaps/adophoxia/keymap.c
+++ b/keyboards/keychron/q0/base/keymaps/adophoxia/keymap.c
@@ -15,8 +15,8 @@
*/
#include QMK_KEYBOARD_H
-
-enum layers { _BASE, _FN1};
+#include "adophoxia.c"
+#include "indicators.c"
/*
* ┌───┬───┬───┬───┐
@@ -45,45 +45,20 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
),
[_FN1] = LAYOUT_numpad_6x4(
- TG(_FN1), KC_MUTE, KC_VOLD, KC_VOLU,
+ TG(_FN2), KC_LCTL, KC_LGUI, KC_LALT,
+ KC_F10, KC_F11, KC_F12, _______,
+ KC_F7, KC_F8, KC_F9,
+ KC_F4, KC_F5, KC_F6, _______,
+ KC_F1, KC_F2, KC_F3,
+ _______, _______, _______
+ ),
+
+ [_FN2] = LAYOUT_numpad_6x4(
+ TO(_BASE), KC_MUTE, KC_VOLD, KC_VOLU,
RGB_MOD, RGB_VAI, RGB_HUI, KC_DEL,
RGB_RMOD, RGB_VAD, RGB_HUD,
RGB_SAI, RGB_SPI, KC_MPRV, _______,
RGB_SAD, RGB_SPD, KC_MPLY,
RGB_TOG, KC_MNXT, _______
)
-};
-
-#define ARRAYSIZE(arr) sizeof(arr)/sizeof(arr[0])
-
-uint8_t numlock_arrows[] = {
- 9, 11, 13, 16
-};
-
-void numlock_arrows_indicators(void);
-
-void numlock_arrows_indicators() {
- if (!host_keyboard_led_state().num_lock) {
- for (uint8_t i = 0; i < ARRAYSIZE(numlock_arrows); i++) {
- rgb_matrix_set_color(numlock_arrows[i], RGB_BLUE);
- }
- rgb_matrix_set_color(NUM_LOCK_LED_INDEX, RGB_WHITE);
- } else {
- if (!rgb_matrix_get_flags()) {
- rgb_matrix_set_color(NUM_LOCK_LED_INDEX, RGB_BLACK);
- }
- }
-}
-
-bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
- switch (get_highest_layer(layer_state)) {
- case _BASE:
- numlock_arrows_indicators();
- rgb_matrix_set_color(0, RGB_RED);
- break;
- case _FN1:
- rgb_matrix_set_color(0, RGB_YELLOW);
- break;
- }
- return false;
-}
\ No newline at end of file
+};
\ No newline at end of file
diff --git a/keyboards/keychron/q0/base/keymaps/adophoxia/rules.mk b/keyboards/keychron/q0/base/keymaps/adophoxia/rules.mk
index 1e5b99807c..f4d46102fc 100644
--- a/keyboards/keychron/q0/base/keymaps/adophoxia/rules.mk
+++ b/keyboards/keychron/q0/base/keymaps/adophoxia/rules.mk
@@ -1 +1,2 @@
VIA_ENABLE = yes
+CONSOLE_ENABLE = yes
\ No newline at end of file
diff --git a/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/adophoxia_encoder.c b/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/adophoxia.c
similarity index 83%
rename from keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/adophoxia_encoder.c
rename to keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/adophoxia.c
index 6bea3c2199..a3fa5e60f7 100644
--- a/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/adophoxia_encoder.c
+++ b/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/adophoxia.c
@@ -28,6 +28,7 @@ bool r_alt_pressed = false;
bool process_record_user(uint16_t keycode, keyrecord_t *record) {
//uint8_t mods_state = get_mods() | get_weak_mods();
switch (keycode) {
+ /* Modifier callbacks */
case KC_LCTL:
ctrl_pressed = record->event.pressed;
break;
@@ -46,6 +47,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
case KC_TAB:
tab_pressed = record->event.pressed;
break;
+ /* Encoder Actions */
case ENC_PRS:
if (record->event.pressed) {
switch(get_highest_layer(layer_state)) {
@@ -71,11 +73,11 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (record->event.pressed) {
switch(get_highest_layer(layer_state)) {
case WIN_BASE:
- if (ctrl_pressed) { // If you are holding L Ctrl, Page Dn
+ if (l_alt_pressed) { // If you are holding L Alt, Page Dn
tap_code(KC_PGDN);
- } else if (l_alt_pressed) { // if holding L Alt, Media Prev track
+ } else if (r_alt_pressed) { // if holding R Alt, Media Prev track
tap_code(KC_MPRV);
- } else if (r_alt_pressed) { // If holding R Alt, move between words
+ } else if (ctrl_pressed) { // If holding L Ctrl, move between words
if (tab_pressed) {
tap_code16(C(KC_LEFT));
}
@@ -105,11 +107,11 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
if (record->event.pressed) {
switch(get_highest_layer(layer_state)) {
case WIN_BASE: //Default Layer
- if (ctrl_pressed) { // If you are holding L Ctrl, Page Up
+ if (l_alt_pressed) { // If you are holding L Alt, Page Up
tap_code(KC_PGUP);
- } else if (l_alt_pressed) { // if holding L Alt, Media Next track
+ } else if (r_alt_pressed) { // if holding R Alt, Media Next track
tap_code(KC_MNXT);
- } else if (r_alt_pressed) { // If holding R Alt, move between words
+ } else if (ctrl_pressed) { // If holding L Ctrl, move between words
tap_code16(C(KC_RIGHT));
} else {
tap_code16_delay(KC_VOLU, 2); // Otherwise, increase volume
@@ -143,4 +145,24 @@ const uint16_t PROGMEM encoder_map[][NUM_ENCODERS][2] = {
[WIN_FN] = { ENCODER_CCW_CW(KC_VOLD, KC_VOLU) },
[WIN_MM] = { ENCODER_CCW_CW(ENC_LFT, ENC_RGT) },
};
-#endif
\ No newline at end of file
+#endif
+
+void keyboard_post_init_user(void) {
+ // Customise these values to desired behaviour
+ debug_enable=true;
+ debug_matrix=true;
+ //debug_keyboard=true;
+ //debug_mouse=true;
+}
+
+bool shutdown_user(bool jump_to_bootloader) {
+ if (jump_to_bootloader) {
+ // turn off LEDs for bootloader
+ rgb_matrix_set_color_all(RGB_OFF);
+ }
+ void rgb_matrix_update_pwm_buffers(void);
+ // force flushing -- otherwise will never happen
+ rgb_matrix_update_pwm_buffers();
+ // false to not process kb level
+ return false;
+}
diff --git a/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/config.h b/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/config.h
index cacdb80520..06c73f9e36 100644
--- a/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/config.h
+++ b/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/config.h
@@ -71,4 +71,9 @@ along with this program. If not, see .
#define ENABLE_RGB_MATRIX_MULTISPLASH
#undef ENABLE_RGB_MATRIX_SOLID_SPLASH
#define ENABLE_RGB_MATRIX_SOLID_MULTISPLASH
-#endif
\ No newline at end of file
+
+ #define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_BREATHING
+ #define RGB_MATRIX_DEFAULT_HUE 160
+#endif
+
+#define DEBUG_MATRIX_SCAN_RATE
\ No newline at end of file
diff --git a/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/indicators.c b/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/indicators.c
index 03bed6dc48..64145ad4a7 100644
--- a/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/indicators.c
+++ b/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/indicators.c
@@ -20,6 +20,35 @@ along with this program. If not, see .
#define ARRAYSIZE(arr) sizeof(arr)/sizeof(arr[0])
+//Reference LED Indexes
+/*
+__attribute__ ((weak)) led_config_t g_led_config = {
+ {
+ { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14 },
+ { 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 },
+ { 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 65, 42, 43 },
+ { 44, NO_LED, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, NO_LED, 55, 56 },
+ { 57, 58, 59, NO_LED, NO_LED, NO_LED, 60, NO_LED, NO_LED, NO_LED, 61, 62, 63, 64, 66 },
+ },
+ {
+ // LED Index to Physical Position
+ {0,0}, {15,0}, {29,0}, {44,0}, {59,0}, {73,0}, {88,0}, {103,0}, {118,0}, {132,0}, {147,0}, {162,0}, {176,0}, {198,0}, {224,0},
+ {4,15}, {22,15}, {37,15}, {51,15}, {66,15}, {81,15}, {95,15}, {110,15}, {125,15}, {140,15}, {154,15}, {169,15}, {184,15}, {202,15}, {224,15},
+ {6,30}, {26,30}, {40,30}, {55,30}, {70,30}, {84,30}, {99,30}, {114,30}, {129,30}, {143,30}, {158,30}, {173,30}, {196,30}, {224,30},
+ {9,45}, {33,45}, {48,45}, {62,45}, {77,45}, {92,45}, {106,45}, {121,45}, {136,45}, {151,45}, {165,45}, {185,45}, {209,49},
+ {2,60}, {20,60}, {39,60}, {94,60}, {147,60}, {162,60}, {176,60}, {195,64}, {209,64}, {224,64}
+ },
+ {
+ // RGB LED Index to Flag
+ 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1,
+ 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1,
+ 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1,
+ 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 1, 1,
+ 1, 1, 1, 4, 1, 1, 1, 1, 1, 1
+ }
+};
+*/
+
uint8_t alphabets[] = {
16, 17, 18, 19, 20, 21, 22, 23, 24, 25,
31, 32, 33, 34, 35, 36, 37, 38, 39,
@@ -77,6 +106,17 @@ void shift_indicators(){
}
};
+void caps_lock_alphabets() {
+ if (host_keyboard_led_state().caps_lock) { // Sets a breathing LED effect on caps locks and KC_A - KC_Z
+ //RGB const rgb = hsv_to_rgb_glow((HSV){HSV_WHITE});
+ for (uint8_t i = 0; i < ARRAYSIZE(alphabets); i++) {
+ //rgb_matrix_set_color(alphabets[i], rgb.r, rgb.g, rgb.b);
+ rgb_matrix_set_color(alphabets[i], 255, 255, 255);
+ }
+ rgb_matrix_set_color(30, RGB_WHITE);
+ }
+}
+
bool mediatrack_navpage_indicators(void) {
if (get_mods() & MOD_BIT(KC_LALT)){
rgb_matrix_set_color(64, RGB_WHITE);
@@ -93,22 +133,6 @@ static inline RGB hsv_to_rgb_glow(HSV hsv) {
return hsv_to_rgb(hsv);
}
-bool rgb_matrix_indicators_user(void) {
- if (keymap_config.no_gui){ // Sets a breathing LED effect on Win Key
- RGB const rgb = hsv_to_rgb_glow((HSV){HSV_RED});
- rgb_matrix_set_color(58, rgb.r, rgb.g, rgb.b);
- }
-
- if (host_keyboard_led_state().caps_lock) { // Sets a breathing LED effect on caps locks and KC_A - KC_Z
- RGB const rgb = hsv_to_rgb_glow((HSV){HSV_WHITE});
- for (uint8_t i = 0; i < ARRAYSIZE(alphabets); i++){
- rgb_matrix_set_color(alphabets[i], rgb.r, rgb.g, rgb.b);
- }
- rgb_matrix_set_color(30, RGB_WHITE);
- }
- return false;
-}
-
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
uint8_t layer = get_highest_layer(layer_state);
if (layer > 0) {
@@ -130,6 +154,17 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
}
rgb_matrix_set_color(index, RGB_YELLOW);
break;
+ case WIN_BASE:
+ if (keymap_config.no_gui){ // Sets a breathing LED effect on Win Key
+ RGB const rgb = hsv_to_rgb_glow((HSV){HSV_RED});
+ rgb_matrix_set_color(58, rgb.r, rgb.g, rgb.b);
+ }
+ //if (rgb_matrix_get_flags() == LED_FLAG_NONE) {
+ caps_lock_alphabets();
+ //}
+ shift_indicators();
+ mediatrack_navpage_indicators();
+ break;
default:
break;
}
@@ -137,10 +172,7 @@ bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max) {
}
}
}
- if (layer == WIN_BASE){ // Checks if layers are either `MAC_BASE` or `WIN_BASE`
- rgb_matrix_indicators_user();
- shift_indicators();
- }
- mediatrack_navpage_indicators();
+
return false;
+
}
\ No newline at end of file
diff --git a/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/indicators.h b/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/indicators.h
index 7ffea20db8..b64ac891f4 100644
--- a/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/indicators.h
+++ b/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/indicators.h
@@ -21,6 +21,8 @@ void breathing_win_lock(void);
void shift_indicators(void);
void breathing_caps_lock(void);
void f_row_leds(void);
+void caps_lock_alphabets(void);
+void knob_leds(void);
bool rgb_matrix_indicators_advanced_user(uint8_t led_min, uint8_t led_max);
bool mediatrack_navpage_indicators(void);
diff --git a/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/keymap.c b/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/keymap.c
index a22b5dce30..431143aa13 100644
--- a/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/keymap.c
+++ b/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/keymap.c
@@ -16,10 +16,9 @@
#include QMK_KEYBOARD_H
#include "adophoxia.h"
-#include "adophoxia_encoder.c"
+#include "adophoxia.c"
#include "indicators.c"
-
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
[WIN_BASE] = LAYOUT_ansi_67(
KC_ESC, KC_1, KC_2, KC_3, KC_4, KC_5, KC_6, KC_7, KC_8, KC_9, KC_0, KC_MINS, KC_EQL, KC_BSPC, ENC_PRS,
diff --git a/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/rules.mk b/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/rules.mk
index ead77a20f1..6f27fae13f 100644
--- a/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/rules.mk
+++ b/keyboards/keychron/q2/ansi_encoder/keymaps/adophoxia/rules.mk
@@ -1,3 +1,4 @@
VIA_ENABLE = yes
ENCODER_MAP_ENABLE = yes
-DIP_SWITCH_ENABLE = no
\ No newline at end of file
+DIP_SWITCH_ENABLE = no
+CONSOLE_ENABLE = yes
\ No newline at end of file