diff options
author | Yang Liu <i@yangliu.name> | 2016-01-24 13:14:50 -0800 |
---|---|---|
committer | Yang Liu <i@yangliu.name> | 2016-01-24 13:14:50 -0800 |
commit | 0a40654b82520849fcc587e8fb76c823378649a6 (patch) | |
tree | 2f2e067afe8dab65b110f09adf8611a89b6cbcae /keyboard/planck/config.h | |
parent | fd72a46c139c0450299e6e4ebbf4ffba531c9e2d (diff) | |
download | firmware-0a40654b82520849fcc587e8fb76c823378649a6.tar.gz firmware-0a40654b82520849fcc587e8fb76c823378649a6.tar.bz2 firmware-0a40654b82520849fcc587e8fb76c823378649a6.zip |
Add support for WS2812 LEDs
Diffstat (limited to 'keyboard/planck/config.h')
-rw-r--r-- | keyboard/planck/config.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/keyboard/planck/config.h b/keyboard/planck/config.h index a4c711db8..856de7306 100644 --- a/keyboard/planck/config.h +++ b/keyboard/planck/config.h @@ -58,6 +58,21 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. keyboard_report->mods == (MOD_BIT(KC_LSHIFT) | MOD_BIT(KC_RSHIFT)) \ ) +/* ws2812 RGB LED */ +#define ws2812_PORTREG PORTD +#define ws2812_DDRREG DDRD +#define ws2812_pin PD1 +#define RGBLED_NUM 28 // Number of LEDs +#ifndef RGBLIGHT_HUE_STEP +#define RGBLIGHT_HUE_STEP 10 +#endif +#ifndef RGBLIGHT_SAT_STEP +#define RGBLIGHT_SAT_STEP 17 +#endif +#ifndef RGBLIGHT_VAL_STEP +#define RGBLIGHT_VAL_STEP 17 +#endif + /* * Feature disable options * These options are also useful to firmware size reduction. |