@@ -112,7 +112,7 @@ void common_hal_displayio_display_construct(displayio_display_obj_t* self,
112112 self -> backlight_inout .base .type = & mp_type_NoneType ;
113113 if (backlight_pin != NULL && common_hal_mcu_pin_is_free (backlight_pin )) {
114114 // Avoid PWM types and functions when the module isn't enabled
115- #if (CIRCUITPY_PULSIO )
115+ #if (CIRCUITPY_PULSEIO )
116116 pwmout_result_t result = common_hal_pulseio_pwmout_construct (& self -> backlight_pwm , backlight_pin , 0 , 50000 , false);
117117 if (result != PWMOUT_OK ) {
118118 self -> backlight_inout .base .type = & digitalio_digitalinout_type ;
@@ -174,14 +174,14 @@ bool common_hal_displayio_display_set_brightness(displayio_display_obj_t* self,
174174 bool ok = false;
175175
176176 // Avoid PWM types and functions when the module isn't enabled
177- #if (CIRCUITPY_PULSIO )
177+ #if (CIRCUITPY_PULSEIO )
178178 bool ispwm = (self -> backlight_pwm .base .type == & pulseio_pwmout_type ) ? true : false;
179179 #else
180180 bool ispwm = false;
181181 #endif
182182
183183 if (ispwm ) {
184- #if (CIRCUITPY_PULSIO )
184+ #if (CIRCUITPY_PULSEIO )
185185 common_hal_pulseio_pwmout_set_duty_cycle (& self -> backlight_pwm , (uint16_t ) (0xffff * brightness ));
186186 ok = true;
187187 #else
@@ -412,7 +412,7 @@ void displayio_display_background(displayio_display_obj_t* self) {
412412
413413void release_display (displayio_display_obj_t * self ) {
414414 release_display_core (& self -> core );
415- #if (CIRCUITPY_PULSIO )
415+ #if (CIRCUITPY_PULSEIO )
416416 if (self -> backlight_pwm .base .type == & pulseio_pwmout_type ) {
417417 common_hal_pulseio_pwmout_reset_ok (& self -> backlight_pwm );
418418 common_hal_pulseio_pwmout_deinit (& self -> backlight_pwm );
0 commit comments