[Keyboard] Added CapsLED and ScrollLock LEDs (#13837)
Co-authored-by: Drashna Jaelre <drashna@live.com>
This commit is contained in:
parent
bc2b73f997
commit
b046bffcb8
2 changed files with 15 additions and 1 deletions
|
@ -47,7 +47,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#define RGB_DI_PIN A3
|
#define RGB_DI_PIN A3
|
||||||
#define RGBLED_NUM 20
|
#define RGBLED_NUM 20
|
||||||
#define RGBLIGHT_ANIMATIONS
|
#define RGBLIGHT_ANIMATIONS
|
||||||
|
#define RGBLIGHT_SLEEP
|
||||||
|
|
||||||
#define AUDIO_PIN A5
|
#define AUDIO_PIN A5
|
||||||
#define AUDIO_PIN_ALT A4
|
#define AUDIO_PIN_ALT A4
|
||||||
#define AUDIO_PIN_ALT_AS_NEGATIVE
|
#define AUDIO_PIN_ALT_AS_NEGATIVE
|
||||||
|
|
||||||
|
#define LED_CAPS_LOCK_PIN A6
|
||||||
|
#define LED_SCROLL_LOCK_PIN A7
|
|
@ -47,3 +47,13 @@ const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = {
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
void matrix_scan_user(void) {
|
||||||
|
writePin(A7, layer_state_is(1));
|
||||||
|
}
|
||||||
|
|
||||||
|
bool led_update_user(led_t led_state) {
|
||||||
|
writePin(LED_CAPS_LOCK_PIN, !led_state.caps_lock);
|
||||||
|
return false;
|
||||||
|
};
|
||||||
|
|
Loading…
Reference in a new issue