Confused about GPIO pin usage
Posted: Mon Jul 04, 2016 8:20 am
Hi,
Something still unclear to me!!!
I currently use ESP12E as a single chip and I need 3 GPIOS (2 as OUTPUTS and 1 as INPUT).
I configured GPIO4 and GPIO5 as OUTPUTS as it seems they are not linked to any other function ...
BUT I don't know which one to use as INPUT!
I tried to use GPIO9, GPIO12 with the following line:
but the Soc does not boot up
According to the picture below, some GPIOs are used for SPI, UART ...
Suppose I'm not using SPI, how can I reassign a SPI pin to a simple GPIO???
I'm afraid I'm completely lost with the way I can use GPIOs!
Something still unclear to me!!!
I currently use ESP12E as a single chip and I need 3 GPIOS (2 as OUTPUTS and 1 as INPUT).
I configured GPIO4 and GPIO5 as OUTPUTS as it seems they are not linked to any other function ...
BUT I don't know which one to use as INPUT!
I tried to use GPIO9, GPIO12 with the following line:
Code: Select all
pinMode(9, INPUT);
but the Soc does not boot up
According to the picture below, some GPIOs are used for SPI, UART ...
Suppose I'm not using SPI, how can I reassign a SPI pin to a simple GPIO???
I'm afraid I'm completely lost with the way I can use GPIOs!