diff options
Diffstat (limited to 'keyboards/mehkee96')
| -rw-r--r-- | keyboards/mehkee96/config.h | 3 | ||||
| -rw-r--r-- | keyboards/mehkee96/mehkee96.c | 20 | ||||
| -rw-r--r-- | keyboards/mehkee96/rules.mk | 4 |
3 files changed, 25 insertions, 2 deletions
diff --git a/keyboards/mehkee96/config.h b/keyboards/mehkee96/config.h index d506626d1..afc9d0a7b 100644 --- a/keyboards/mehkee96/config.h +++ b/keyboards/mehkee96/config.h | |||
| @@ -16,6 +16,9 @@ | |||
| 16 | #define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5, C4, C3, C2, D7 } | 16 | #define MATRIX_COL_PINS { A0, A1, A2, A3, A4, A5, A6, A7, C7, C6, C5, C4, C3, C2, D7 } |
| 17 | #define DIODE_DIRECTION COL2ROW | 17 | #define DIODE_DIRECTION COL2ROW |
| 18 | 18 | ||
| 19 | #define BACKLIGHT_PIN D4 | ||
| 20 | #define BACKLIGHT_LEVELS 3 | ||
| 21 | |||
| 19 | #define RGBLED_NUM 16 | 22 | #define RGBLED_NUM 16 |
| 20 | #define RGBLIGHT_ANIMATIONS | 23 | #define RGBLIGHT_ANIMATIONS |
| 21 | /* key combination for command */ | 24 | /* key combination for command */ |
diff --git a/keyboards/mehkee96/mehkee96.c b/keyboards/mehkee96/mehkee96.c index d9e2bac7a..2da25b6b8 100644 --- a/keyboards/mehkee96/mehkee96.c +++ b/keyboards/mehkee96/mehkee96.c | |||
| @@ -16,3 +16,23 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. | |||
| 16 | */ | 16 | */ |
| 17 | 17 | ||
| 18 | #include "mehkee96.h" | 18 | #include "mehkee96.h" |
| 19 | |||
| 20 | void keyboard_pre_init_kb(void) { | ||
| 21 | led_init_ports(); | ||
| 22 | keyboard_pre_init_user(); | ||
| 23 | } | ||
| 24 | |||
| 25 | void led_init_ports(void) { | ||
| 26 | setPinOutput(D0); | ||
| 27 | setPinOutput(D1); | ||
| 28 | writePinHigh(D0); | ||
| 29 | writePinHigh(D1); | ||
| 30 | } | ||
| 31 | |||
| 32 | bool led_update_kb(led_t led_state) { | ||
| 33 | if (led_update_user(led_state)) { | ||
| 34 | writePin(D0, !led_state.num_lock); | ||
| 35 | writePin(D1, !led_state.caps_lock); | ||
| 36 | } | ||
| 37 | return true; | ||
| 38 | } | ||
diff --git a/keyboards/mehkee96/rules.mk b/keyboards/mehkee96/rules.mk index a7d36548f..772706e6c 100644 --- a/keyboards/mehkee96/rules.mk +++ b/keyboards/mehkee96/rules.mk | |||
| @@ -17,9 +17,9 @@ BOOTLOADER = bootloadHID | |||
| 17 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) | 17 | BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) |
| 18 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) | 18 | MOUSEKEY_ENABLE = yes # Mouse keys(+4700) |
| 19 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) | 19 | EXTRAKEY_ENABLE = yes # Audio control and System control(+450) |
| 20 | CONSOLE_ENABLE = yes # Console for debug(+400) | 20 | CONSOLE_ENABLE = no # Console for debug(+400) |
| 21 | COMMAND_ENABLE = yes # Commands for debug and configuration | 21 | COMMAND_ENABLE = yes # Commands for debug and configuration |
| 22 | BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality | 22 | BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality |
| 23 | RGBLIGHT_ENABLE = yes | 23 | RGBLIGHT_ENABLE = yes |
| 24 | WS2812_DRIVER = i2c | 24 | WS2812_DRIVER = i2c |
| 25 | 25 | ||
