The use of the ESP8266 in the world of IoT

User avatar
By TarekJ
#61716
rudy wrote:
TarekJ wrote:
Barnabybear wrote:Hi, no that will not work. You need to change the function by adding the two lines below:
Code: Select all//********************* CHANGE PIN FUNCTION **********************
pinMode(led3, FUNCTION_3); //GPIO 1 swap the pin to a GPIO.
pinMode(led4, FUNCTION_3); //GPIO 3 swap the pin to a GPIO.
//***************************************************************************
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
pinMode(led4, OUTPUT);


Thank you very much, but does this affect the module when reflashing it? as the tx is no longer tx, it is gpio? :)


No it doesn't. When it is in boot loader mode (re-flashing) it is not running your code.



Thank you very much....
It worked fine to me.