diff options
author | Jack Humbert <[email protected]> | 2016-08-25 12:22:28 -0400 |
---|---|---|
committer | GitHub <[email protected]> | 2016-08-25 12:22:28 -0400 |
commit | f0cb5e9e50f663ce4e3161f251c0e638c0313403 (patch) | |
tree | 391521e33b3bae0dd58d687f6d3387966ef16f3a /keyboards/kitten_paw/kitten_paw.h | |
parent | 8ebe9c446c6ba9f159a8d478a7e03f035812a363 (diff) | |
parent | 22ef0bbac55215965c7fc6246d20d4591fbf14f4 (diff) | |
download | qmk_firmware-f0cb5e9e50f663ce4e3161f251c0e638c0313403.tar.gz qmk_firmware-f0cb5e9e50f663ce4e3161f251c0e638c0313403.zip |
Merge pull request #683 from ickerwx/master
LEDs work now, fixed Kitten Paw default keymap, added my own keymap as a better example
Diffstat (limited to 'keyboards/kitten_paw/kitten_paw.h')
-rw-r--r-- | keyboards/kitten_paw/kitten_paw.h | 11 |
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 |