diff --git a/driver/backlight.c b/driver/backlight.c index f3c3006..79ed050 100644 --- a/driver/backlight.c +++ b/driver/backlight.c @@ -28,7 +28,9 @@ bool backlightOn; void BACKLIGHT_InitHardware() { // 48MHz / 94 / 1024 ~ 500Hz - const uint32_t PWM_FREQUENCY_HZ = 1000; + // kamilsss655: needs to be higher than audible frequency otherwise it will + // be heard on the receiving radio if the screen is dimmed during tx + const uint32_t PWM_FREQUENCY_HZ = 6000; PWM_PLUS0_CLKSRC |= ((48000000 / 1024 / PWM_FREQUENCY_HZ) << 16); PWM_PLUS0_PERIOD = 1023;