diff options
author | Yang Liu <[email protected]> | 2016-01-24 13:14:50 -0800 |
---|---|---|
committer | Yang Liu <[email protected]> | 2016-01-24 13:14:50 -0800 |
commit | 0a40654b82520849fcc587e8fb76c823378649a6 (patch) | |
tree | 2f2e067afe8dab65b110f09adf8611a89b6cbcae /keyboard/planck/planck.c | |
parent | fd72a46c139c0450299e6e4ebbf4ffba531c9e2d (diff) | |
download | qmk_firmware-0a40654b82520849fcc587e8fb76c823378649a6.tar.gz qmk_firmware-0a40654b82520849fcc587e8fb76c823378649a6.zip |
Add support for WS2812 LEDs
Diffstat (limited to 'keyboard/planck/planck.c')
-rw-r--r-- | keyboard/planck/planck.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/keyboard/planck/planck.c b/keyboard/planck/planck.c index b62862af04..63ca54761c 100644 --- a/keyboard/planck/planck.c +++ b/keyboard/planck/planck.c @@ -15,6 +15,11 @@ void * matrix_init_kb(void) { backlight_init_ports(); #endif + #ifdef RGBLIGHT_ENABLE + rgblight_init(); + #endif + + // Turn status LED on DDRE |= (1<<6); PORTE |= (1<<6); @@ -28,4 +33,4 @@ void * matrix_scan_kb(void) { if (matrix_scan_user) { (*matrix_scan_user)(); } -};
\ No newline at end of file +}; |