diff options
Diffstat (limited to 'keyboards/evyd13/eon75')
| -rw-r--r-- | keyboards/evyd13/eon75/config.h | 5 | ||||
| -rw-r--r-- | keyboards/evyd13/eon75/eon75.c | 29 |
2 files changed, 5 insertions, 29 deletions
diff --git a/keyboards/evyd13/eon75/config.h b/keyboards/evyd13/eon75/config.h index 707665140..d7d84de2a 100644 --- a/keyboards/evyd13/eon75/config.h +++ b/keyboards/evyd13/eon75/config.h | |||
| @@ -51,6 +51,11 @@ | |||
| 51 | */ | 51 | */ |
| 52 | // #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 | 52 | // #define SOFT_SERIAL_PIN D0 // or D1, D2, D3, E6 |
| 53 | 53 | ||
| 54 | #define LED_NUM_LOCK_PIN B7 | ||
| 55 | #define LED_CAPS_LOCK_PIN D5 | ||
| 56 | #define LED_SCROLL_LOCK_PIN B0 | ||
| 57 | #define LED_PIN_ON_STATE 0 | ||
| 58 | |||
| 54 | // #define BACKLIGHT_PIN B7 | 59 | // #define BACKLIGHT_PIN B7 |
| 55 | // #define BACKLIGHT_BREATHING | 60 | // #define BACKLIGHT_BREATHING |
| 56 | // #define BACKLIGHT_LEVELS 3 | 61 | // #define BACKLIGHT_LEVELS 3 |
diff --git a/keyboards/evyd13/eon75/eon75.c b/keyboards/evyd13/eon75/eon75.c index 67e9fe66a..38620a636 100644 --- a/keyboards/evyd13/eon75/eon75.c +++ b/keyboards/evyd13/eon75/eon75.c | |||
| @@ -14,32 +14,3 @@ | |||
| 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 14 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 15 | */ | 15 | */ |
| 16 | #include "eon75.h" | 16 | #include "eon75.h" |
| 17 | |||
| 18 | void matrix_init_kb(void) { | ||
| 19 | // put your keyboard start-up code here | ||
| 20 | // runs once when the firmware starts up | ||
| 21 | matrix_init_user(); | ||
| 22 | led_init_ports(); | ||
| 23 | }; | ||
| 24 | |||
| 25 | void led_init_ports(void) { | ||
| 26 | // * Set our LED pins as output and high | ||
| 27 | setPinOutput(D5); | ||
| 28 | writePinHigh(D5); | ||
| 29 | |||
| 30 | setPinOutput(B7); | ||
| 31 | writePinHigh(B7); | ||
| 32 | |||
| 33 | setPinOutput(B0); | ||
| 34 | writePinHigh(B0); | ||
| 35 | } | ||
| 36 | |||
| 37 | bool led_update_kb(led_t led_state) { | ||
| 38 | if(led_update_user(led_state)) { | ||
| 39 | writePin(D5, !led_state.caps_lock); | ||
| 40 | writePin(B7, !led_state.num_lock); | ||
| 41 | writePin(B0, !led_state.scroll_lock); | ||
| 42 | } | ||
| 43 | |||
| 44 | return true; | ||
| 45 | } | ||
