mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-23 00:47:02 +06:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
commit
3871c717da
|
@ -53,3 +53,7 @@
|
||||||
#define RGBLIGHT_HUE_STEP 12 // units to step when in/decreasing hue
|
#define RGBLIGHT_HUE_STEP 12 // units to step when in/decreasing hue
|
||||||
#define RGBLIGHT_SAT_STEP 12 // units to step when in/decresing saturation
|
#define RGBLIGHT_SAT_STEP 12 // units to step when in/decresing saturation
|
||||||
#define RGBLIGHT_VAL_STEP 12 // units to step when in/decreasing value (brightness)
|
#define RGBLIGHT_VAL_STEP 12 // units to step when in/decreasing value (brightness)
|
||||||
|
|
||||||
|
/* define rotary encoder pins */
|
||||||
|
#define ENCODERS_PAD_A {B0}
|
||||||
|
#define ENCODERS_PAD_B {D1}
|
||||||
|
|
|
@ -15,3 +15,15 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "quark_squared.h"
|
#include "quark_squared.h"
|
||||||
|
|
||||||
|
bool encoder_update_kb(uint8_t index, bool clockwise) {
|
||||||
|
if (!encoder_update_user(index, clockwise)) { return false; }
|
||||||
|
if (index == 0) {
|
||||||
|
if (clockwise) {
|
||||||
|
tap_code_delay(KC_VOLD, 10);
|
||||||
|
} else {
|
||||||
|
tap_code_delay(KC_VOLU, 10);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
|
@ -17,7 +17,7 @@ BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality
|
||||||
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
RGBLIGHT_ENABLE = yes # Enable keyboard RGB underglow
|
||||||
AUDIO_ENABLE = no # Audio output
|
AUDIO_ENABLE = no # Audio output
|
||||||
UNICODE_ENABLE = yes # Unicode
|
UNICODE_ENABLE = yes # Unicode
|
||||||
|
ENCODER_ENABLE = yes # Enable Rotary Encoders
|
||||||
# Disable unsupported hardware
|
# Disable unsupported hardware
|
||||||
AUDIO_SUPPORTED = no
|
AUDIO_SUPPORTED = no
|
||||||
BACKLIGHT_SUPPORTED = no
|
BACKLIGHT_SUPPORTED = no
|
||||||
|
|
Loading…
Reference in New Issue
Block a user