summaryrefslogtreecommitdiffstats
path: root/keyboards/preonic/rev3/config.h
diff options
context:
space:
mode:
authorQMK Bot <hello@qmk.fm>2021-06-09 07:19:28 +0000
committerQMK Bot <hello@qmk.fm>2021-06-09 07:19:28 +0000
commitcbfa2dba2594d419aea1cf26584751ced9411ded (patch)
tree37074412720350e712cbd759e086b5d38be1454a /keyboards/preonic/rev3/config.h
parentd9add95037b0c0f394c4ca9885f645f8523c90d6 (diff)
parent4dda7167124e26ff8ed66059f1816f749286f111 (diff)
Merge remote-tracking branch 'origin/master' into develop
Diffstat (limited to 'keyboards/preonic/rev3/config.h')
-rw-r--r--keyboards/preonic/rev3/config.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/keyboards/preonic/rev3/config.h b/keyboards/preonic/rev3/config.h
index d37f300b07..0e83124456 100644
--- a/keyboards/preonic/rev3/config.h
+++ b/keyboards/preonic/rev3/config.h
@@ -113,19 +113,19 @@
/* 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
// RGB Matrix support
#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