Skip to content

Commit

Permalink
修复背光干扰
Browse files Browse the repository at this point in the history
  • Loading branch information
losehu committed Aug 11, 2024
1 parent b02e071 commit bd0bdc4
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 @@ -27,7 +27,7 @@ bool backlightOn;

void BACKLIGHT_InitHardware() {
// 48MHz / 94 / 1024 ~ 500Hz
const uint32_t PWM_FREQUENCY_HZ = 1000;
const uint32_t PWM_FREQUENCY_HZ = 25000;
PWM_PLUS0_CLKSRC |= ((48000000 / 1024 / PWM_FREQUENCY_HZ) << 16);
PWM_PLUS0_PERIOD = 1023;

Expand Down

0 comments on commit bd0bdc4

Please sign in to comment.