diff options
author | Stanley Lai <stanleylai.sg@gmail.com> | 2016-06-19 20:29:42 -0700 |
---|---|---|
committer | Jack Humbert <jack.humb@gmail.com> | 2016-06-19 23:29:42 -0400 |
commit | 3302258abd8929e03c9af71393afc5c9d6947c23 (patch) | |
tree | 64d43847617faf94f3e76055062ead63a972264c /keyboard/kc60/keymaps/ws2812/config.h | |
parent | 3f6fac4721c0f03dab7704b09329d720c85470ce (diff) |
Added WS2812 support for KC60 (#419)
* Added WS2812 support for KC60
* Reorganized WS2812 support into its own keymap
* Fixed relative link in README
* Moved WS2812 mention in README to the bottom
* Fixed titling in WS2812 README
* Reverted KC60 Makefile and default keymap back
* Moved RGB specific config.h to ws2812 keymap folder
Diffstat (limited to 'keyboard/kc60/keymaps/ws2812/config.h')
-rw-r--r-- | keyboard/kc60/keymaps/ws2812/config.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/keyboard/kc60/keymaps/ws2812/config.h b/keyboard/kc60/keymaps/ws2812/config.h new file mode 100644 index 0000000000..933bb0d2d1 --- /dev/null +++ b/keyboard/kc60/keymaps/ws2812/config.h @@ -0,0 +1,10 @@ +#include "../../config.h" + +/* WS2812B RGB Underglow LED */ +#define ws2812_PORTREG PORTF +#define ws2812_DDRREG DDRF +#define ws2812_pin PF5 // Based on wiring depicted in ws2812_wiring.jpg +#define RGBLED_NUM 16 // Number of LEDs. Change this to match your use case. +#define RGBLIGHT_HUE_STEP 8 +#define RGBLIGHT_SAT_STEP 8 +#define RGBLIGHT_VAL_STEP 8 |