diff options
| author | kaylanm <1063516+kaylanm@users.noreply.github.com> | 2020-11-05 23:58:00 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-05 20:58:00 -0800 |
| commit | 5f2c4349543e06821d3c0b724f36e12767a04e54 (patch) | |
| tree | 877c7577eada36efdb1df974126048c64379acbd | |
| parent | f2eb080aa280ccbab9c9ed624afef2c1765d8e74 (diff) | |
| download | qmk_firmware-5f2c4349543e06821d3c0b724f36e12767a04e54.tar.gz qmk_firmware-5f2c4349543e06821d3c0b724f36e12767a04e54.zip | |
E85 backlight & LED indicator updates (#10678)
* Enable in-switch backlight on e85 for VIA keymaps.
Update LED indicator code for e85 hotswap/soldered PCBs.
| -rw-r--r-- | keyboards/exclusive/e85/config.h | 6 | ||||
| -rw-r--r-- | keyboards/exclusive/e85/hotswap/hotswap.c | 15 | ||||
| -rw-r--r-- | keyboards/exclusive/e85/hotswap/keymaps/via/rules.mk | 3 | ||||
| -rw-r--r-- | keyboards/exclusive/e85/soldered/keymaps/via/rules.mk | 3 | ||||
| -rw-r--r-- | keyboards/exclusive/e85/soldered/soldered.c | 8 |
5 files changed, 27 insertions, 8 deletions
diff --git a/keyboards/exclusive/e85/config.h b/keyboards/exclusive/e85/config.h index 758cd8b78..844c91025 100644 --- a/keyboards/exclusive/e85/config.h +++ b/keyboards/exclusive/e85/config.h | |||
| @@ -52,9 +52,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 52 | */ | 52 | */ |
| 53 | #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | 53 | #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 |
| 54 | 54 | ||
| 55 | // #define BACKLIGHT_PIN B6 | 55 | #define BACKLIGHT_PIN B6 |
| 56 | // #define BACKLIGHT_BREATHING | 56 | #define BACKLIGHT_BREATHING |
| 57 | // #define BACKLIGHT_LEVELS 6 | 57 | #define BACKLIGHT_LEVELS 6 |
| 58 | 58 | ||
| 59 | #define RGB_DI_PIN E2 | 59 | #define RGB_DI_PIN E2 |
| 60 | #ifdef RGB_DI_PIN | 60 | #ifdef RGB_DI_PIN |
diff --git a/keyboards/exclusive/e85/hotswap/hotswap.c b/keyboards/exclusive/e85/hotswap/hotswap.c index a5893e6bc..db14971da 100644 --- a/keyboards/exclusive/e85/hotswap/hotswap.c +++ b/keyboards/exclusive/e85/hotswap/hotswap.c | |||
| @@ -15,3 +15,18 @@ | |||
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | #include "hotswap.h" | 17 | #include "hotswap.h" |
| 18 | |||
| 19 | void keyboard_pre_init_kb(void) { | ||
| 20 | setPinOutput(C7); | ||
| 21 | setPinOutput(B5); | ||
| 22 | |||
| 23 | keyboard_pre_init_user(); | ||
| 24 | } | ||
| 25 | |||
| 26 | bool led_update_kb(led_t led_state) { | ||
| 27 | if (led_update_user(led_state)) { | ||
| 28 | writePin(C7, led_state.caps_lock); | ||
| 29 | writePin(B5, led_state.scroll_lock); | ||
| 30 | } | ||
| 31 | return true; | ||
| 32 | } | ||
diff --git a/keyboards/exclusive/e85/hotswap/keymaps/via/rules.mk b/keyboards/exclusive/e85/hotswap/keymaps/via/rules.mk index 29a6f7519..45681e1b1 100644 --- a/keyboards/exclusive/e85/hotswap/keymaps/via/rules.mk +++ b/keyboards/exclusive/e85/hotswap/keymaps/via/rules.mk | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | VIA_ENABLE = yes | 1 | VIA_ENABLE = yes |
| 2 | CONSOLE_ENABLE = no # Console for debug | 2 | CONSOLE_ENABLE = no # Console for debug |
| 3 | COMMAND_ENABLE = no # Commands for debug and configuration \ No newline at end of file | 3 | COMMAND_ENABLE = no # Commands for debug and configuration |
| 4 | BACKLIGHT_ENABLE = yes | ||
diff --git a/keyboards/exclusive/e85/soldered/keymaps/via/rules.mk b/keyboards/exclusive/e85/soldered/keymaps/via/rules.mk index 29a6f7519..45681e1b1 100644 --- a/keyboards/exclusive/e85/soldered/keymaps/via/rules.mk +++ b/keyboards/exclusive/e85/soldered/keymaps/via/rules.mk | |||
| @@ -1,3 +1,4 @@ | |||
| 1 | VIA_ENABLE = yes | 1 | VIA_ENABLE = yes |
| 2 | CONSOLE_ENABLE = no # Console for debug | 2 | CONSOLE_ENABLE = no # Console for debug |
| 3 | COMMAND_ENABLE = no # Commands for debug and configuration \ No newline at end of file | 3 | COMMAND_ENABLE = no # Commands for debug and configuration |
| 4 | BACKLIGHT_ENABLE = yes | ||
diff --git a/keyboards/exclusive/e85/soldered/soldered.c b/keyboards/exclusive/e85/soldered/soldered.c index 0a7de55ce..e97a543b5 100644 --- a/keyboards/exclusive/e85/soldered/soldered.c +++ b/keyboards/exclusive/e85/soldered/soldered.c | |||
| @@ -17,14 +17,16 @@ | |||
| 17 | #include "soldered.h" | 17 | #include "soldered.h" |
| 18 | 18 | ||
| 19 | void keyboard_pre_init_kb(void) { | 19 | void keyboard_pre_init_kb(void) { |
| 20 | setPinOutput(C7); | 20 | setPinOutput(C7); |
| 21 | 21 | setPinOutput(B5); | |
| 22 | keyboard_pre_init_user(); | 22 | |
| 23 | keyboard_pre_init_user(); | ||
| 23 | } | 24 | } |
| 24 | 25 | ||
| 25 | bool led_update_kb(led_t led_state) { | 26 | bool led_update_kb(led_t led_state) { |
| 26 | if (led_update_user(led_state)) { | 27 | if (led_update_user(led_state)) { |
| 27 | writePin(C7, led_state.caps_lock); | 28 | writePin(C7, led_state.caps_lock); |
| 29 | writePin(B5, led_state.scroll_lock); | ||
| 28 | } | 30 | } |
| 29 | return true; | 31 | return true; |
| 30 | } | 32 | } |
