summaryrefslogtreecommitdiffstats
path: root/keyboard/planck/config.h
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-01-25 03:31:08 +0100
committerJack Humbert <jack.humb@gmail.com>2016-01-25 03:31:08 +0100
commit99c72d0d9b5baec52f801887ee595e623aaf0b3f (patch)
tree60aa81d4ecd80f487eb60b2dc53f4abc07af8e52 /keyboard/planck/config.h
parentfd72a46c139c0450299e6e4ebbf4ffba531c9e2d (diff)
parentf277079dfa831d44456f00f307e26cf79d36c03d (diff)
downloadqmk_firmware-99c72d0d9b5baec52f801887ee595e623aaf0b3f.tar.gz
qmk_firmware-99c72d0d9b5baec52f801887ee595e623aaf0b3f.tar.xz
Merge pull request #106 from yangliu/planck-rgb
RGB Underglow with WS2812 LEDs
Diffstat (limited to 'keyboard/planck/config.h')
-rw-r--r--keyboard/planck/config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/keyboard/planck/config.h b/keyboard/planck/config.h
index a4c711db8..d3719e0cb 100644
--- a/keyboard/planck/config.h
+++ b/keyboard/planck/config.h
@@ -58,6 +58,15 @@ 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
+#define RGBLIGHT_HUE_STEP 10
+#define RGBLIGHT_SAT_STEP 17
+#define RGBLIGHT_VAL_STEP 17
+
/*
* Feature disable options
* These options are also useful to firmware size reduction.