BillTercel / key27

This keyboard is driver by PWM LED, but for some reason TIMER3 is not working.
0 stars 0 forks source link

STM32F103 and lit the LED with PWM,but TIMER3 no work #1

Open BillTercel opened 1 year ago

BillTercel commented 1 year ago

These two days, I made a Number of PAD with STM32F103 and lit the LED with PWM. According to the QMK document, just enable the corresponding configuration.

undef HAL_USE_PWM

define HAL_USE_PWM TRUE

undef STM32_PWM_USE_TIM3

define STM32_PWM_USE_TIM3 TRUE

define BACKLIGHT_PIN A6 //A6 A7 B0 B1

define BACKLIGHT_PWM_DRIVER PWMD3

define BACKLIGHT_PWM_CHANNEL 1

define BACKLIGHT_PAL_MODE 2

It's a pity to use TIMER3 for knowing why it doesn't work.

BillTercel commented 1 year ago

//#define BACKLIGHT_PAL_MODE 2 This problem was originally caused by #define BACKLIGHT_PAL_MODE 2, it is normal to comment it out, but I do not know if it is a bug.