Skip to content

Commit

Permalink
Backlight setting 1 was fully off for some reason on higher freq PWM
Browse files Browse the repository at this point in the history
  • Loading branch information
egzumer committed Oct 30, 2023
1 parent ed64c7f commit 3e0ea6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion driver/backlight.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ bool backlightOn;
void BACKLIGHT_InitHardware()
{
// 48MHz / 94 / 1024 ~ 500Hz
const uint32_t PWM_FREQUENCY_HZ = 6000;
const uint32_t PWM_FREQUENCY_HZ = 1000;
PWM_PLUS0_CLKSRC |= ((48000000 / 1024 / PWM_FREQUENCY_HZ) << 16);
PWM_PLUS0_PERIOD = 1023;

Expand Down

0 comments on commit 3e0ea6f

Please sign in to comment.