aboutsummaryrefslogtreecommitdiff
path: root/keyboards/mehkee96
diff options
context:
space:
mode:
Diffstat (limited to 'keyboards/mehkee96')
-rw-r--r--keyboards/mehkee96/config.h3
-rw-r--r--keyboards/mehkee96/mehkee96.c20
-rw-r--r--keyboards/mehkee96/rules.mk4
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
20void keyboard_pre_init_kb(void) {
21 led_init_ports();
22 keyboard_pre_init_user();
23}
24
25void led_init_ports(void) {
26 setPinOutput(D0);
27 setPinOutput(D1);
28 writePinHigh(D0);
29 writePinHigh(D1);
30}
31
32bool 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
17BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000) 17BOOTMAGIC_ENABLE = yes # Virtual DIP switch configuration(+1000)
18MOUSEKEY_ENABLE = yes # Mouse keys(+4700) 18MOUSEKEY_ENABLE = yes # Mouse keys(+4700)
19EXTRAKEY_ENABLE = yes # Audio control and System control(+450) 19EXTRAKEY_ENABLE = yes # Audio control and System control(+450)
20CONSOLE_ENABLE = yes # Console for debug(+400) 20CONSOLE_ENABLE = no # Console for debug(+400)
21COMMAND_ENABLE = yes # Commands for debug and configuration 21COMMAND_ENABLE = yes # Commands for debug and configuration
22BACKLIGHT_ENABLE = no # Enable keyboard backlight functionality 22BACKLIGHT_ENABLE = yes # Enable keyboard backlight functionality
23RGBLIGHT_ENABLE = yes 23RGBLIGHT_ENABLE = yes
24WS2812_DRIVER = i2c 24WS2812_DRIVER = i2c
25 25