Merge pull request #2 from BrainicHQ/s1lviu-pwm-tone-fix

Increase PWM tone to 25kHz to cover majority of users
This commit is contained in:
Silviu Stroe
2024-05-24 15:25:20 +03:00
committed by GitHub

View File

@@ -34,7 +34,7 @@ bool backlightOn;
void BACKLIGHT_InitHardware()
{
// 48MHz / 94 / 1024 ~ 500Hz
const uint32_t PWM_FREQUENCY_HZ = 4000;
const uint32_t PWM_FREQUENCY_HZ = 25000;
PWM_PLUS0_CLKSRC |= ((48000000 / 1024 / PWM_FREQUENCY_HZ) << 16);
PWM_PLUS0_PERIOD = 1023;