Skip to content

Commit 6b04b7e

Browse files
committed
display brightness pwm 500hz frequency
1 parent 491374c commit 6b04b7e

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
@@ -116,7 +116,7 @@ void common_hal_displayio_display_construct(displayio_display_obj_t *self,
116116
if (backlight_pin != NULL && common_hal_mcu_pin_is_free(backlight_pin)) {
117117
// Avoid PWM types and functions when the module isn't enabled
118118
#if (CIRCUITPY_PWMIO)
119-
pwmout_result_t result = common_hal_pwmio_pwmout_construct(&self->backlight_pwm, backlight_pin, 0, 50000, false);
119+
pwmout_result_t result = common_hal_pwmio_pwmout_construct(&self->backlight_pwm, backlight_pin, 0, 500, false);
120120
if (result != PWMOUT_OK) {
121121
self->backlight_inout.base.type = &digitalio_digitalinout_type;
122122
common_hal_digitalio_digitalinout_construct(&self->backlight_inout, backlight_pin);

0 commit comments

Comments
 (0)