diff options
Diffstat (limited to 'keyboards/ymdk')
| -rw-r--r-- | keyboards/ymdk/bface/bface.c | 16 | ||||
| -rw-r--r-- | keyboards/ymdk/bface/config.h | 2 |
2 files changed, 2 insertions, 16 deletions
diff --git a/keyboards/ymdk/bface/bface.c b/keyboards/ymdk/bface/bface.c index b35b33376..fabc10498 100644 --- a/keyboards/ymdk/bface/bface.c +++ b/keyboards/ymdk/bface/bface.c | |||
| @@ -15,19 +15,3 @@ | |||
| 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | 15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
| 16 | */ | 16 | */ |
| 17 | #include "quantum.h" | 17 | #include "quantum.h" |
| 18 | |||
| 19 | void keyboard_pre_init_kb(void) { | ||
| 20 | led_init_ports(); | ||
| 21 | keyboard_pre_init_user(); | ||
| 22 | } | ||
| 23 | |||
| 24 | void led_init_ports(void) { | ||
| 25 | setPinOutput(D1); | ||
| 26 | } | ||
| 27 | |||
| 28 | bool led_update_kb(led_t led_state) { | ||
| 29 | if (led_update_user(led_state)) { | ||
| 30 | writePin(D1, led_state.caps_lock); | ||
| 31 | } | ||
| 32 | return true; | ||
| 33 | } | ||
diff --git a/keyboards/ymdk/bface/config.h b/keyboards/ymdk/bface/config.h index 3d9605b75..6be1c8662 100644 --- a/keyboards/ymdk/bface/config.h +++ b/keyboards/ymdk/bface/config.h | |||
| @@ -34,6 +34,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 34 | 34 | ||
| 35 | #define DIODE_DIRECTION COL2ROW | 35 | #define DIODE_DIRECTION COL2ROW |
| 36 | 36 | ||
| 37 | #define LED_CAPS_LOCK_PIN D1 | ||
| 38 | |||
| 37 | #define BACKLIGHT_PIN D4 | 39 | #define BACKLIGHT_PIN D4 |
| 38 | #define BACKLIGHT_LEVELS 6 | 40 | #define BACKLIGHT_LEVELS 6 |
| 39 | 41 | ||
