Skip to content

Commit 2ef9b13

Browse files
authored
Update pins.c
add microphone pins, thanks @panguin6010
1 parent 65a0073 commit 2ef9b13

File tree

1 file changed

+4
-0
lines changed
  • ports/espressif/boards/m5stack_cardputer

1 file changed

+4
-0
lines changed

ports/espressif/boards/m5stack_cardputer/pins.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
3333
{ MP_ROM_QSTR(MP_QSTR_D42), MP_ROM_PTR(&pin_GPIO42) },
3434
{ MP_ROM_QSTR(MP_QSTR_D43), MP_ROM_PTR(&pin_GPIO43) },
3535

36+
// Mic
37+
{ MP_ROM_QSTR(MP_QSTR_MIC_DATA), MP_ROM_PTR(&pin_GPIO46) },
38+
{ MP_ROM_QSTR(MP_QSTR_MIC_CLK), MP_ROM_PTR(&pin_GPIO43) },
39+
3640
// IR
3741
{ MP_ROM_QSTR(MP_QSTR_IR_TX), MP_ROM_PTR(&pin_GPIO44) },
3842

0 commit comments

Comments
 (0)