From b090ff03ed4391f27e8e3d9a843f529bedd08e19 Mon Sep 17 00:00:00 2001 From: Drashna Jaelre Date: Fri, 21 Jan 2022 19:36:52 -0800 Subject: [Keymap] Drashna's OLED rewrite (#15981) --- keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h') diff --git a/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h b/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h index 986ccae69b..6ae51ca6f0 100644 --- a/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h +++ b/keyboards/handwired/tractyl_manuform/5x6_right/f411/config.h @@ -43,12 +43,13 @@ along with this program. If not, see . //#define WS2812_PWM_COMPLEMENTARY_OUTPUT // Define for a complementary timer output (TIMx_CHyN); omit for a normal timer output (TIMx_CHy). #define WS2812_DMA_STREAM STM32_DMA1_STREAM7 // DMA Stream for TIMx_UP, see the respective reference manual for the appropriate values for your MCU. #define WS2812_DMA_CHANNEL 3 // DMA Channel for TIMx_UP, see the respective reference manual for the appropriate values for your MCU. +#define WS2812_PWM_TARGET_PERIOD 800000 + #define RGBLED_NUM 52 #define RGBLIGHT_SPLIT #define RGBLED_SPLIT \ { 26, 26 } -#define RGBLIGHT_LIMIT_VAL 150 #define DEBUG_LED_PIN C13 @@ -68,6 +69,10 @@ along with this program. If not, see . #define SERIAL_USART_RX_PAL_MODE 7 // Pin "alternate function", see the respective datasheet for the appropriate values for your MCU. default: 7 #define SERIAL_USART_TIMEOUT 100 // USART driver timeout. default 100 + +#define CRC8_USE_TABLE +#define CRC8_OPTIMIZE_SPEED + /* i2c config for oleds */ #define I2C_DRIVER I2CD1 #define I2C1_SCL_PIN B8 @@ -75,9 +80,6 @@ along with this program. If not, see . #define I2C1_SCL_PAL_MODE 4 #define I2C1_SDA_PAL_MODE 4 // #define I2C1_CLOCK_SPEED 400000 -/* For Legacy Compatibility: */ -#define I2C1_SCL 8 -#define I2C1_SDA 9 /* encoder config */ #define ENCODERS_PAD_A \ @@ -110,3 +112,4 @@ along with this program. If not, see . #define PMW3360_CS_PIN B0 #define PMW3360_SPI_MODE 3 #define PMW3360_SPI_DIVISOR 64 +#define PMW3360_FIRMWARE_UPLOAD_FAST -- cgit v1.2.3