We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd2cbc0 commit ce19132Copy full SHA for ce19132
ports/raspberrypi/common-hal/audiobusio/PDMIn.c
@@ -64,7 +64,7 @@ void common_hal_audiobusio_pdmin_construct(audiobusio_pdmin_obj_t *self,
64
// Use the state machine to manage pins.
65
common_hal_rp2pio_statemachine_construct(&self->state_machine,
66
pdmin, sizeof(pdmin) / sizeof(pdmin[0]),
67
- 44100 * 32 * 2, // Clock at 44.1 khz to warm the DAC up.
+ sample_rate * 32 * 2, // Frequency based on sample rate
68
NULL, 0,
69
NULL, 1, 0, 0xffffffff, // out pin
70
data_pin, 1, // in pins
0 commit comments