-->
Page 2 of 3

Re: Defining Rx-Tx ESP8266_pins to other GPIO_pins in the co

PostPosted: Fri Feb 05, 2016 2:12 pm
by costo
Thank you very much for your help.

In the meantime I have added this function in my sketch (without the ....... dots) and also added the command

user_init();

as first line in the setup.

Sketch compiles and I flash it but sadly I still get all outputs from Serial.print functions to the normal Rx and Tx .
So there is something more going on which I do not understand :(

edit: also tried it the way exactly as you supposed but that gives me the same result.

Re: Defining Rx-Tx ESP8266_pins to other GPIO_pins in the co

PostPosted: Fri Feb 05, 2016 2:30 pm
by martinayotte
Unfortunately, as I said, I've never tried it myself.
I have no clue why it doesn't work.

Re: Defining Rx-Tx ESP8266_pins to other GPIO_pins in the co

PostPosted: Fri Feb 05, 2016 3:03 pm
by xtal
These maybe Hardware restricted ,, You may need to check the processor doc, to see if they are resignable...

I don't know if you could use software serial or not [ Serial.println on software serial ]..?

Re: Defining Rx-Tx ESP8266_pins to other GPIO_pins in the co

PostPosted: Fri Feb 05, 2016 4:47 pm
by martinayotte
BTW, I'm seeing that the ArduinoESP core has integrate Serial.swap(), so you can try it out instead of using the plain SDK alternate function.
It should be something like :
Code: Select allSerial.swap(15); //toggle between use of GPIO13/GPIO15 or GPIO3/GPIO(1/2) as RX and TX