summaryrefslogtreecommitdiff
path: root/keyboards/kitten_paw/kitten_paw.h
diff options
context:
space:
mode:
authorRené Werner <mail@renewerner.net>2016-08-25 12:25:57 +0200
committerRené Werner <mail@renewerner.net>2016-08-25 12:25:57 +0200
commit1bbd3c1eea78abf0b36a289fb37f80dfc4f9c8bb (patch)
tree7c02c2f1c4138de03e893bb02fdad4cbd883981f /keyboards/kitten_paw/kitten_paw.h
parent6a61c89477678e3df9aba9189b3dd67fc24e94ab (diff)
downloadqmk_firmware-1bbd3c1eea78abf0b36a289fb37f80dfc4f9c8bb.tar.gz
qmk_firmware-1bbd3c1eea78abf0b36a289fb37f80dfc4f9c8bb.zip
fixed defaulf keymap, added my own keymap
now the LEDs are working like they should
Diffstat (limited to 'keyboards/kitten_paw/kitten_paw.h')
-rw-r--r--keyboards/kitten_paw/kitten_paw.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/keyboards/kitten_paw/kitten_paw.h b/keyboards/kitten_paw/kitten_paw.h
index a6c1d27de7..189b721b93 100644
--- a/keyboards/kitten_paw/kitten_paw.h
+++ b/keyboards/kitten_paw/kitten_paw.h
@@ -3,6 +3,17 @@
#include "quantum.h"
+#define CONFIG_LED_IO \
+ DDRB |= (1<<7); \
+ DDRC |= (1<<5) | (1<<6);
+
+#define USB_LED_CAPS_LOCK_ON PORTC &= ~(1<<6)
+#define USB_LED_CAPS_LOCK_OFF PORTC |= (1<<6)
+#define USB_LED_NUM_LOCK_ON PORTB &= ~(1<<7)
+#define USB_LED_NUM_LOCK_OFF PORTB |= (1<<7)
+#define USB_LED_SCROLL_LOCK_ON PORTC &= ~(1<<5)
+#define USB_LED_SCROLL_LOCK_OFF PORTC |= (1<<5)
+
// This a shortcut to help you visually see your layout.
// The first section contains all of the arguements
// The second converts the arguments into a two-dimensional array