I have a nodemcu dev board with the esp12 chip. (Not the esp12e one).
I have tried to make use of gpios 9 & 10 for digital output. On the board, they are marked as SD2 & SD3. I suppose they must be serial data pins by default.
Ideally you can change the pin functions using the PIN_FUNC_SELECT() macro. So I tried the following:
PIN_FUNC_SELECT(PERIPHS_IO_MUX_SD_DATA3_U, FUNC_GPIO10);
However, on flashing this code, I notice my MCUs reboots. So it must have crashed at some point.
Am I doing this right?
PS: I was hoping to have at least 12 pins that can serve as digital output.
board_build.flash_mode = dout– Juraj Jul 03 '20 at 16:39