Skip to content

Commit 08158a7

Browse files
committed
Tweak the backlight PWM rate to be higher that audio range. Fixes #1571
1 parent f3e50b9 commit 08158a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

shared-module/displayio/Display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void common_hal_displayio_display_construct(displayio_display_obj_t* self,
121121
// Always set the backlight type in case we're reusing memory.
122122
self->backlight_inout.base.type = &mp_type_NoneType;
123123
if (backlight_pin != NULL && common_hal_mcu_pin_is_free(backlight_pin)) {
124-
pwmout_result_t result = common_hal_pulseio_pwmout_construct(&self->backlight_pwm, backlight_pin, 0, 5000, false);
124+
pwmout_result_t result = common_hal_pulseio_pwmout_construct(&self->backlight_pwm, backlight_pin, 0, 50000, false);
125125
if (result != PWMOUT_OK) {
126126
self->backlight_inout.base.type = &digitalio_digitalinout_type;
127127
common_hal_digitalio_digitalinout_construct(&self->backlight_inout, backlight_pin);

0 commit comments

Comments
 (0)