summaryrefslogtreecommitdiff
path: root/layouts/community/split_3x6_3/drashna/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'layouts/community/split_3x6_3/drashna/config.h')
-rw-r--r--layouts/community/split_3x6_3/drashna/config.h36
1 files changed, 29 insertions, 7 deletions
diff --git a/layouts/community/split_3x6_3/drashna/config.h b/layouts/community/split_3x6_3/drashna/config.h
index 7db51fb6e9..b9b1d073d6 100644
--- a/layouts/community/split_3x6_3/drashna/config.h
+++ b/layouts/community/split_3x6_3/drashna/config.h
@@ -19,14 +19,11 @@
/* Select hand configuration */
// #define MASTER_LEFT
-// #define MASTER_RIGHT
-#define EE_HANDS
-
+#define MASTER_RIGHT
+// #define EE_HAND
#undef USE_I2C
#undef SSD1306OLED
-#define USE_SERIAL_PD2
-
// #define TAPPING_FORCE_HOLD
// #define TAPPING_TERM 100
@@ -41,6 +38,10 @@
#endif
#ifdef RGB_MATRIX_ENABLE
+# ifdef CONVERT_TO_PROTON_C
+# undef RGB_DI_PIN
+# define RGB_DI_PIN PAL_LINE(GPIOA, 3)
+# endif
# define RGB_MATRIX_KEYPRESSES // reacts to keypresses
// # define RGB_MATRIX_KEYRELEASES // reacts to keyreleases (instead of keypresses)
// # define RGB_DISABLE_AFTER_TIMEOUT 0 // number of ticks to wait until disabling effects
@@ -54,6 +55,24 @@
# define RGB_MATRIX_SPD_STEP 10
#endif
+#ifdef CONVERT_TO_PROTON_C
+# define WS2812_PWM_DRIVER PWMD15 // default: PWMD2
+# define WS2812_PWM_CHANNEL 2 // default: 2
+# define WS2812_PWM_PAL_MODE 9 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 2
+# define WS2812_DMA_STREAM STM32_DMA1_STREAM5 // DMA Stream for TIMx_UP, see the respective reference manual for the appropriate values for your MCU.
+# define WS2812_DMA_CHANNEL 5 // DMA Channel for TIMx_UP, see the respective reference manual for the appropriate values for your MCU.
+# define WS2812_DMAMUX_ID STM32_DMAMUX1_TIM15_UP // DMAMUX configuration for TIMx_UP -- only required if your MCU has a DMAMUX peripheral, see the respective reference manual for the appropriate values for your MCU.
+
+# undef SOFT_SERIAL_PIN
+# define SOFT_SERIAL_PIN D3
+# define SERIAL_USART_DRIVER SD1 // USART driver of TX pin. default: SD1
+# define SERIAL_USART_TX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7
+
+
+// #define INIT_EE_HANDS_LEFT
+// #define INIT_EE_HANDS_RIGHT
+#endif
+
#ifdef AUDIO_ENABLE
# define B6_AUDIO
# define NO_MUSIC_MODE
@@ -64,8 +83,11 @@
#endif
#undef PRODUCT
-#define PRODUCT Drashna Hacked Corne Keyboard
-
+#ifdef CONVERT_TO_PROTON_C
+# define PRODUCT Drashna Hacked ARM Corne Keyboard
+#else
+# define PRODUCT Drashna Hacked Corne Keyboard
+#endif
#define OLED_FONT_H "layouts/community/split_3x6_3/drashna/glcdfont.c"
// #define OLED_FONT_WIDTH 5
// #define OLED_FONT_HEIGHT 7