Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E85 backlight & LED indicator updates #10678

Merged
merged 1 commit into from
Nov 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions keyboards/exclusive/e85/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 BACKLIGHT_PIN B6
// #define BACKLIGHT_BREATHING
// #define BACKLIGHT_LEVELS 6
#define BACKLIGHT_PIN B6
#define BACKLIGHT_BREATHING
#define BACKLIGHT_LEVELS 6

#define RGB_DI_PIN E2
#ifdef RGB_DI_PIN
Expand Down
15 changes: 15 additions & 0 deletions keyboards/exclusive/e85/hotswap/hotswap.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,18 @@
*/

#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;
}
3 changes: 2 additions & 1 deletion keyboards/exclusive/e85/hotswap/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
VIA_ENABLE = yes
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
3 changes: 2 additions & 1 deletion keyboards/exclusive/e85/soldered/keymaps/via/rules.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
VIA_ENABLE = yes
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
8 changes: 5 additions & 3 deletions keyboards/exclusive/e85/soldered/soldered.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,16 @@
#include "soldered.h"

void keyboard_pre_init_kb(void) {
setPinOutput(C7);

keyboard_pre_init_user();
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;
}