diff options
| author | Scott Shawcroft <scott@tannewt.org> | 2019-02-21 12:51:01 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-21 12:51:01 -0800 |
| commit | b8678c936b0dfae1acbff9ec4e10f8e6f6819690 (patch) | |
| tree | 898c6e24ed4894852d0e2e14c68892403f558778 /shared-module | |
| parent | f3e50b9df259aa4100ec52eb99d08581c0766af2 (diff) | |
| parent | 08158a7c346f2561fd6786b2bc5af9b44aee1f4c (diff) | |
Merge pull request #1585 from tannewt/backlight_pwm_frequency_boost
Tweak the backlight PWM rate to be higher than audio range
Diffstat (limited to 'shared-module')
| -rw-r--r-- | shared-module/displayio/Display.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-module/displayio/Display.c b/shared-module/displayio/Display.c index f14a27b78..da3424a36 100644 --- a/shared-module/displayio/Display.c +++ b/shared-module/displayio/Display.c @@ -121,7 +121,7 @@ void common_hal_displayio_display_construct(displayio_display_obj_t* self, // Always set the backlight type in case we're reusing memory. self->backlight_inout.base.type = &mp_type_NoneType; if (backlight_pin != NULL && common_hal_mcu_pin_is_free(backlight_pin)) { - pwmout_result_t result = common_hal_pulseio_pwmout_construct(&self->backlight_pwm, backlight_pin, 0, 5000, false); + pwmout_result_t result = common_hal_pulseio_pwmout_construct(&self->backlight_pwm, backlight_pin, 0, 50000, false); if (result != PWMOUT_OK) { self->backlight_inout.base.type = &digitalio_digitalinout_type; common_hal_digitalio_digitalinout_construct(&self->backlight_inout, backlight_pin); |
