@@ -112,7 +112,7 @@ void common_hal_displayio_display_construct(displayio_display_obj_t* self,
112
112
self -> backlight_inout .base .type = & mp_type_NoneType ;
113
113
if (backlight_pin != NULL && common_hal_mcu_pin_is_free (backlight_pin )) {
114
114
// Avoid PWM types and functions when the module isn't enabled
115
- #if (CIRCUITPY_PULSIO )
115
+ #if (CIRCUITPY_PULSEIO )
116
116
pwmout_result_t result = common_hal_pulseio_pwmout_construct (& self -> backlight_pwm , backlight_pin , 0 , 50000 , false);
117
117
if (result != PWMOUT_OK ) {
118
118
self -> backlight_inout .base .type = & digitalio_digitalinout_type ;
@@ -174,14 +174,14 @@ bool common_hal_displayio_display_set_brightness(displayio_display_obj_t* self,
174
174
bool ok = false;
175
175
176
176
// Avoid PWM types and functions when the module isn't enabled
177
- #if (CIRCUITPY_PULSIO )
177
+ #if (CIRCUITPY_PULSEIO )
178
178
bool ispwm = (self -> backlight_pwm .base .type == & pulseio_pwmout_type ) ? true : false;
179
179
#else
180
180
bool ispwm = false;
181
181
#endif
182
182
183
183
if (ispwm ) {
184
- #if (CIRCUITPY_PULSIO )
184
+ #if (CIRCUITPY_PULSEIO )
185
185
common_hal_pulseio_pwmout_set_duty_cycle (& self -> backlight_pwm , (uint16_t ) (0xffff * brightness ));
186
186
ok = true;
187
187
#else
@@ -412,7 +412,7 @@ void displayio_display_background(displayio_display_obj_t* self) {
412
412
413
413
void release_display (displayio_display_obj_t * self ) {
414
414
release_display_core (& self -> core );
415
- #if (CIRCUITPY_PULSIO )
415
+ #if (CIRCUITPY_PULSEIO )
416
416
if (self -> backlight_pwm .base .type == & pulseio_pwmout_type ) {
417
417
common_hal_pulseio_pwmout_reset_ok (& self -> backlight_pwm );
418
418
common_hal_pulseio_pwmout_deinit (& self -> backlight_pwm );
0 commit comments