E85 backlight & LED indicator updates (#10678)
* Enable in-switch backlight on e85 for VIA keymaps. Update LED indicator code for e85 hotswap/soldered PCBs.
This commit is contained in:
parent
f2eb080aa2
commit
5f2c434954
5 changed files with 27 additions and 8 deletions
|
@ -52,9 +52,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
|
#define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6
|
||||||
|
|
||||||
// #define BACKLIGHT_PIN B6
|
#define BACKLIGHT_PIN B6
|
||||||
// #define BACKLIGHT_BREATHING
|
#define BACKLIGHT_BREATHING
|
||||||
// #define BACKLIGHT_LEVELS 6
|
#define BACKLIGHT_LEVELS 6
|
||||||
|
|
||||||
#define RGB_DI_PIN E2
|
#define RGB_DI_PIN E2
|
||||||
#ifdef RGB_DI_PIN
|
#ifdef RGB_DI_PIN
|
||||||
|
|
|
@ -15,3 +15,18 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "hotswap.h"
|
#include "hotswap.h"
|
||||||
|
|
||||||
|
void keyboard_pre_init_kb(void) {
|
||||||
|
setPinOutput(C7);
|
||||||
|
setPinOutput(B5);
|
||||||
|
|
||||||
|
keyboard_pre_init_user();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool led_update_kb(led_t led_state) {
|
||||||
|
if (led_update_user(led_state)) {
|
||||||
|
writePin(C7, led_state.caps_lock);
|
||||||
|
writePin(B5, led_state.scroll_lock);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
VIA_ENABLE = yes
|
VIA_ENABLE = yes
|
||||||
CONSOLE_ENABLE = no # Console for debug
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
BACKLIGHT_ENABLE = yes
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
VIA_ENABLE = yes
|
VIA_ENABLE = yes
|
||||||
CONSOLE_ENABLE = no # Console for debug
|
CONSOLE_ENABLE = no # Console for debug
|
||||||
COMMAND_ENABLE = no # Commands for debug and configuration
|
COMMAND_ENABLE = no # Commands for debug and configuration
|
||||||
|
BACKLIGHT_ENABLE = yes
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
|
|
||||||
void keyboard_pre_init_kb(void) {
|
void keyboard_pre_init_kb(void) {
|
||||||
setPinOutput(C7);
|
setPinOutput(C7);
|
||||||
|
setPinOutput(B5);
|
||||||
|
|
||||||
keyboard_pre_init_user();
|
keyboard_pre_init_user();
|
||||||
}
|
}
|
||||||
|
@ -25,6 +26,7 @@ void keyboard_pre_init_kb(void) {
|
||||||
bool led_update_kb(led_t led_state) {
|
bool led_update_kb(led_t led_state) {
|
||||||
if (led_update_user(led_state)) {
|
if (led_update_user(led_state)) {
|
||||||
writePin(C7, led_state.caps_lock);
|
writePin(C7, led_state.caps_lock);
|
||||||
|
writePin(B5, led_state.scroll_lock);
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue