diff --git a/keyboards/qwiic_hub/chconf.h b/keyboards/qwiic_hub/chconf.h index 5a9b833107..b52ca7d2c8 100644 --- a/keyboards/qwiic_hub/chconf.h +++ b/keyboards/qwiic_hub/chconf.h @@ -41,7 +41,7 @@ * @brief System time counter resolution. * @note Allowed values are 16 or 32 bits. */ -#define CH_CFG_ST_RESOLUTION 32 +#define CH_CFG_ST_RESOLUTION 16 /** * @brief System tick frequency. diff --git a/keyboards/qwiic_hub/config.h b/keyboards/qwiic_hub/config.h index 8247a6260c..5ab1c3217d 100644 --- a/keyboards/qwiic_hub/config.h +++ b/keyboards/qwiic_hub/config.h @@ -134,11 +134,6 @@ along with this program. If not, see . #define NO_USB_STARTUP_CHECK -#define WS2812_LED_N 1 -#define RGBLED_NUM WS2812_LED_N -#define WS2812_TIM_N 2 -#define WS2812_TIM_CH 2 -#define PORT_WS2812 GPIOB -#define PIN_WS2812 8 +#define RGBLED_NUM 1 #endif diff --git a/keyboards/qwiic_hub/halconf.h b/keyboards/qwiic_hub/halconf.h index 2e8eed14f4..256c869e58 100644 --- a/keyboards/qwiic_hub/halconf.h +++ b/keyboards/qwiic_hub/halconf.h @@ -118,7 +118,7 @@ * @brief Enables the PWM subsystem. */ #if !defined(HAL_USE_PWM) || defined(__DOXYGEN__) -#define HAL_USE_PWM FALSE +#define HAL_USE_PWM TRUE #endif /** diff --git a/keyboards/qwiic_hub/mcuconf.h b/keyboards/qwiic_hub/mcuconf.h index 1ef0a0b9eb..867a7984d5 100644 --- a/keyboards/qwiic_hub/mcuconf.h +++ b/keyboards/qwiic_hub/mcuconf.h @@ -183,8 +183,8 @@ */ #define STM32_PWM_USE_ADVANCED FALSE #define STM32_PWM_USE_TIM1 FALSE -#define STM32_PWM_USE_TIM2 FALSE -#define STM32_PWM_USE_TIM3 FALSE +#define STM32_PWM_USE_TIM2 TRUE +#define STM32_PWM_USE_TIM3 TRUE #define STM32_PWM_USE_TIM4 FALSE #define STM32_PWM_USE_TIM8 FALSE #define STM32_PWM_TIM1_IRQ_PRIORITY 7 @@ -225,7 +225,7 @@ * ST driver system settings. */ #define STM32_ST_IRQ_PRIORITY 8 -#define STM32_ST_USE_TIMER 2 +#define STM32_ST_USE_TIMER 4 /* * UART driver system settings. diff --git a/keyboards/qwiic_hub/qwiic_hub.c b/keyboards/qwiic_hub/qwiic_hub.c index deba006a70..dc24047704 100644 --- a/keyboards/qwiic_hub/qwiic_hub.c +++ b/keyboards/qwiic_hub/qwiic_hub.c @@ -19,7 +19,7 @@ uint8_t *o_fb; void matrix_init_kb(void) { - ledDriverInit(8, GPIOB, 0b00000010, &o_fb); + ledDriverInit(1, GPIOB, 0b100000000, &o_fb); testPatternFB(o_fb); matrix_init_user(); @@ -30,6 +30,8 @@ bool process_record_kb(uint16_t keycode, keyrecord_t *record) { } void matrix_scan_kb(void) { + + testPatternFB(o_fb); matrix_scan_user(); } diff --git a/quantum/rgblight.c b/quantum/rgblight.c index bb4b1e62db..f870855d00 100644 --- a/quantum/rgblight.c +++ b/quantum/rgblight.c @@ -328,7 +328,7 @@ void rgblight_disable_noeeprom(void) { #ifdef RGBLIGHT_ANIMATIONS rgblight_timer_disable(); #endif - _delay_ms(50); + wait_ms(50); rgblight_set(); }