@@ -66,22 +66,22 @@ busio_spi_obj_t status_apa102 = {
66
66
#if defined(CP_RGB_STATUS_R ) || defined(CP_RGB_STATUS_G ) || defined(CP_RGB_STATUS_B )
67
67
#define CP_RGB_STATUS_LED
68
68
69
- #include "shared-bindings/pulseio /PWMOut.h"
69
+ #include "shared-bindings/pwmio /PWMOut.h"
70
70
#include "shared-bindings/microcontroller/Pin.h"
71
71
72
- pulseio_pwmout_obj_t rgb_status_r = {
72
+ pwmio_pwmout_obj_t rgb_status_r = {
73
73
.base = {
74
- .type = & pulseio_pwmout_type ,
74
+ .type = & pwmio_pwmout_type ,
75
75
},
76
76
};
77
- pulseio_pwmout_obj_t rgb_status_g = {
77
+ pwmio_pwmout_obj_t rgb_status_g = {
78
78
.base = {
79
- .type = & pulseio_pwmout_type ,
79
+ .type = & pwmio_pwmout_type ,
80
80
},
81
81
};
82
- pulseio_pwmout_obj_t rgb_status_b = {
82
+ pwmio_pwmout_obj_t rgb_status_b = {
83
83
.base = {
84
- .type = & pulseio_pwmout_type ,
84
+ .type = & pwmio_pwmout_type ,
85
85
},
86
86
};
87
87
@@ -147,26 +147,26 @@ void rgb_led_status_init() {
147
147
148
148
#if defined(CP_RGB_STATUS_LED )
149
149
if (common_hal_mcu_pin_is_free (CP_RGB_STATUS_R )) {
150
- pwmout_result_t red_result = common_hal_pulseio_pwmout_construct (& rgb_status_r , CP_RGB_STATUS_R , 0 , 50000 , false);
150
+ pwmout_result_t red_result = common_hal_pwmio_pwmout_construct (& rgb_status_r , CP_RGB_STATUS_R , 0 , 50000 , false);
151
151
152
152
if (PWMOUT_OK == red_result ) {
153
- common_hal_pulseio_pwmout_never_reset (& rgb_status_r );
153
+ common_hal_pwmio_pwmout_never_reset (& rgb_status_r );
154
154
}
155
155
}
156
156
157
157
if (common_hal_mcu_pin_is_free (CP_RGB_STATUS_G )) {
158
- pwmout_result_t green_result = common_hal_pulseio_pwmout_construct (& rgb_status_g , CP_RGB_STATUS_G , 0 , 50000 , false);
158
+ pwmout_result_t green_result = common_hal_pwmio_pwmout_construct (& rgb_status_g , CP_RGB_STATUS_G , 0 , 50000 , false);
159
159
160
160
if (PWMOUT_OK == green_result ) {
161
- common_hal_pulseio_pwmout_never_reset (& rgb_status_g );
161
+ common_hal_pwmio_pwmout_never_reset (& rgb_status_g );
162
162
}
163
163
}
164
164
165
165
if (common_hal_mcu_pin_is_free (CP_RGB_STATUS_B )) {
166
- pwmout_result_t blue_result = common_hal_pulseio_pwmout_construct (& rgb_status_b , CP_RGB_STATUS_B , 0 , 50000 , false);
166
+ pwmout_result_t blue_result = common_hal_pwmio_pwmout_construct (& rgb_status_b , CP_RGB_STATUS_B , 0 , 50000 , false);
167
167
168
168
if (PWMOUT_OK == blue_result ) {
169
- common_hal_pulseio_pwmout_never_reset (& rgb_status_b );
169
+ common_hal_pwmio_pwmout_never_reset (& rgb_status_b );
170
170
}
171
171
}
172
172
#endif
@@ -242,9 +242,9 @@ void new_status_color(uint32_t rgb) {
242
242
status_rgb_color [2 ] = (uint16_t ) (blue_u8 << 8 ) + blue_u8 ;
243
243
#endif
244
244
245
- common_hal_pulseio_pwmout_set_duty_cycle (& rgb_status_r , status_rgb_color [0 ]);
246
- common_hal_pulseio_pwmout_set_duty_cycle (& rgb_status_g , status_rgb_color [1 ]);
247
- common_hal_pulseio_pwmout_set_duty_cycle (& rgb_status_b , status_rgb_color [2 ]);
245
+ common_hal_pwmio_pwmout_set_duty_cycle (& rgb_status_r , status_rgb_color [0 ]);
246
+ common_hal_pwmio_pwmout_set_duty_cycle (& rgb_status_g , status_rgb_color [1 ]);
247
+ common_hal_pwmio_pwmout_set_duty_cycle (& rgb_status_b , status_rgb_color [2 ]);
248
248
#endif
249
249
}
250
250
@@ -288,9 +288,9 @@ void temp_status_color(uint32_t rgb) {
288
288
temp_status_color_rgb [2 ] = (uint16_t ) (blue_u8 << 8 ) + blue_u8 ;
289
289
#endif
290
290
291
- common_hal_pulseio_pwmout_set_duty_cycle (& rgb_status_r , temp_status_color_rgb [0 ]);
292
- common_hal_pulseio_pwmout_set_duty_cycle (& rgb_status_g , temp_status_color_rgb [1 ]);
293
- common_hal_pulseio_pwmout_set_duty_cycle (& rgb_status_b , temp_status_color_rgb [2 ]);
291
+ common_hal_pwmio_pwmout_set_duty_cycle (& rgb_status_r , temp_status_color_rgb [0 ]);
292
+ common_hal_pwmio_pwmout_set_duty_cycle (& rgb_status_g , temp_status_color_rgb [1 ]);
293
+ common_hal_pwmio_pwmout_set_duty_cycle (& rgb_status_b , temp_status_color_rgb [2 ]);
294
294
#endif
295
295
}
296
296
@@ -327,9 +327,9 @@ void clear_temp_status() {
327
327
blue = status_rgb_color [2 ];
328
328
#endif
329
329
330
- common_hal_pulseio_pwmout_set_duty_cycle (& rgb_status_r , red );
331
- common_hal_pulseio_pwmout_set_duty_cycle (& rgb_status_g , green );
332
- common_hal_pulseio_pwmout_set_duty_cycle (& rgb_status_b , blue );
330
+ common_hal_pwmio_pwmout_set_duty_cycle (& rgb_status_r , red );
331
+ common_hal_pwmio_pwmout_set_duty_cycle (& rgb_status_g , green );
332
+ common_hal_pwmio_pwmout_set_duty_cycle (& rgb_status_b , blue );
333
333
#endif
334
334
}
335
335
0 commit comments