File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
boards/adafruit_macropad_rp2040 Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ void board_init(void) {
69
69
& pin_GPIO24 , // Command or data
70
70
& pin_GPIO22 , // Chip select
71
71
& pin_GPIO23 , // Reset
72
- 1000000 , // Baudrate
72
+ 10000000 , // Baudrate
73
73
0 , // Polarity
74
74
0 ); // Phase
75
75
Original file line number Diff line number Diff line change @@ -225,9 +225,11 @@ void common_hal_audiopwmio_pwmaudioout_stop(audiopwmio_pwmaudioout_obj_t *self)
225
225
audio_dma_stop (& self -> dma );
226
226
227
227
// Set to quiescent level.
228
- pwm_hw -> slice [self -> left_pwm .slice ].cc = self -> quiescent_value ;
228
+ common_hal_pwmio_pwmout_set_duty_cycle (& self -> left_pwm , self -> quiescent_value );
229
+ pwmio_pwmout_set_top (& self -> left_pwm , PWM_TOP );
229
230
if (self -> stereo ) {
230
- pwm_hw -> slice [self -> right_pwm .slice ].cc = self -> quiescent_value ;
231
+ common_hal_pwmio_pwmout_set_duty_cycle (& self -> right_pwm , self -> quiescent_value );
232
+ pwmio_pwmout_set_top (& self -> right_pwm , PWM_TOP );
231
233
}
232
234
}
233
235
You can’t perform that action at this time.
0 commit comments