summaryrefslogtreecommitdiffstats
path: root/keyboards/planck/rev6/config.h
diff options
context:
space:
mode:
authorNick Brassel <nick@tzarc.org>2020-07-16 15:15:04 +1000
committerGitHub <noreply@github.com>2020-07-16 15:15:04 +1000
commit08b405e1e93fbd1aa9aa061ce4ee271b6ac9e60c (patch)
treed45495ecc42b67d2400ddcc3d33462973d85559d /keyboards/planck/rev6/config.h
parente8d577c081469608a9c203f97aece82d4253e99e (diff)
parent13eda1b1a28f8ae6c93e08904e3a9c996bbd1efd (diff)
planck/rev6: Enable WS2812 LED matrix with pwm drivers (#9735)
* planck/rev6: Enable WS2812 LED matrix with pwm drivers * Comments and cleanup. * GPL2+ Licensing Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'keyboards/planck/rev6/config.h')
-rw-r--r--keyboards/planck/rev6/config.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/keyboards/planck/rev6/config.h b/keyboards/planck/rev6/config.h
index 3fbbae0278..0adca592bb 100644
--- a/keyboards/planck/rev6/config.h
+++ b/keyboards/planck/rev6/config.h
@@ -126,17 +126,18 @@
/* override number of MIDI tone keycodes (each octave adds 12 keycodes and allocates 12 bytes) */
//#define MIDI_TONE_KEYCODE_OCTAVES 1
-// #define WS2812_LED_N 2
-// #define RGBLED_NUM WS2812_LED_N
-// #define WS2812_TIM_N 2
-// #define WS2812_TIM_CH 2
-// #define PORT_WS2812 GPIOA
-// #define PIN_WS2812 1
-// #define WS2812_DMA_STREAM STM32_DMA1_STREAM2 // DMA stream for TIMx_UP (look up in reference manual under DMA Channel selection)
-//#define WS2812_DMA_CHANNEL 7 // DMA channel for TIMx_UP
-//#define WS2812_EXTERNAL_PULLUP
+
+/*
+ * WS2812 Underglow Matrix options
+ */
#define RGB_DI_PIN A1
#define RGBLED_NUM 9
-#define RGBLIGHT_ANIMATIONS
+#define DRIVER_LED_TOTAL RGBLED_NUM
+
+#define WS2812_PWM_DRIVER PWMD2
+#define WS2812_PWM_CHANNEL 2
+#define WS2812_PWM_PAL_MODE 1
+#define WS2812_DMA_STREAM STM32_DMA1_STREAM2
+#define WS2812_DMA_CHANNEL 2
#endif