We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4b7b098 commit 86bb6dbCopy full SHA for 86bb6db
1 file changed
ports/raspberrypi/common-hal/audiobusio/PDMIn.c
@@ -43,7 +43,7 @@ void common_hal_audiobusio_pdmin_construct(audiobusio_pdmin_obj_t *self,
43
// Use the state machine to manage pins.
44
common_hal_rp2pio_statemachine_construct(&self->state_machine,
45
pdmin, MP_ARRAY_SIZE(pdmin),
46
- sample_rate * 32 * 2, // Frequency based on sample rate
+ sample_rate * OVERSAMPLING * 2, // Frequency based on sample rate
47
NULL, 0,
48
NULL, 0, // may_exec
49
NULL, 1, PIO_PINMASK32_NONE, PIO_PINMASK32_ALL, // out pin
0 commit comments