Skip to content

Commit

Permalink
libraries/PDM/src/rp2040/pdm.pio.h: pio_gpio_init data in pin. (#2432)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpwe committed Sep 9, 2024
1 parent be2174b commit 3e24400
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/PDM/src/rp2040/pdm.pio.h
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static inline void pdm_pio_program_init(PIO pio, uint sm, uint offset, uint clkP
pio_sm_set_consecutive_pindirs(pio, sm, dataPin, 1, false);
pio_sm_set_consecutive_pindirs(pio, sm, clkPin, 1, true);
pio_sm_set_pins_with_mask(pio, sm, 0, (1u << clkPin));
//pio_gpio_init(pio, dataPin);
pio_gpio_init(pio, dataPin);
pio_gpio_init(pio, clkPin);
pio_sm_init(pio, sm, offset, &c);
pio_sm_set_enabled(pio, sm, true);
Expand Down

0 comments on commit 3e24400

Please sign in to comment.