diff options
author | Sid Carter <sidcarter@users.noreply.github.com> | 2019-12-13 12:14:11 -0500 |
---|---|---|
committer | fauxpark <fauxpark@gmail.com> | 2019-12-14 04:14:11 +1100 |
commit | 707d449ba0f69acbc0580e6f898fa2203ec992ba (patch) | |
tree | ae3f618d7523387d27ba02e6196305ab7f12acad /keyboards/projectkb/alice/alice.c | |
parent | ba13127c045d653929b554d2444ce31caba59502 (diff) | |
download | qmk_firmware-707d449ba0f69acbc0580e6f898fa2203ec992ba.tar.gz qmk_firmware-707d449ba0f69acbc0580e6f898fa2203ec992ba.zip |
Project Keyboard Alice PCB - Indicator LEDs and keymap update (#7442)
* allow main functions to be overridden
* update keymap to toggle keys and cleanup a bit
* allow main functions to be overridden
* update keymap to toggle keys and cleanup a bit
* get them lights working with the new setup
* disable console on my keymap, cause ARM and Linux, for now
* update keymap
* add home and end to the navigation
* thought this was redundant - update keyboards/projectkb/alice/alice.c
Co-Authored-By: fauxpark <fauxpark@gmail.com>
Diffstat (limited to 'keyboards/projectkb/alice/alice.c')
-rw-r--r-- | keyboards/projectkb/alice/alice.c | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/keyboards/projectkb/alice/alice.c b/keyboards/projectkb/alice/alice.c index fada43681..ca0c7da2b 100644 --- a/keyboards/projectkb/alice/alice.c +++ b/keyboards/projectkb/alice/alice.c | |||
@@ -6,22 +6,12 @@ void matrix_init_board(void){ | |||
6 | setPinOutput(A2); | 6 | setPinOutput(A2); |
7 | } | 7 | } |
8 | 8 | ||
9 | 9 | bool led_update_kb(led_t led_state) { | |
10 | void led_set_kb(uint8_t usb_led) { | 10 | bool runDefault = led_update_user(led_state); |
11 | if (IS_LED_ON(usb_led, USB_LED_NUM_LOCK)) { | 11 | if (runDefault) { |
12 | writePinLow(A0); | 12 | writePin(A0, !led_state.num_lock); |
13 | } else { | 13 | writePin(A1, !led_state.caps_lock); |
14 | writePinHigh(A0); | 14 | writePin(A2, !led_state.scroll_lock); |
15 | } | ||
16 | if (IS_LED_ON(usb_led, USB_LED_CAPS_LOCK)) { | ||
17 | writePinLow(A1); | ||
18 | } else { | ||
19 | writePinHigh(A1); | ||
20 | } | ||
21 | if (IS_LED_ON(usb_led, USB_LED_SCROLL_LOCK)) { | ||
22 | writePinLow(A2); | ||
23 | } else { | ||
24 | writePinHigh(A2); | ||
25 | } | 15 | } |
26 | led_set_user(usb_led); | 16 | return runDefault; |
27 | } | 17 | } |