"esp8266-01" tx for output
Posted: Sun Jan 22, 2017 8:05 am
- is there a way to use tx and rx for outputs in "esp8266-01" ?
- could you provide a code ?
- could you provide a code ?
-->
Open Community Forum for ESP8266, Come share Arduino and IoT (Internet of Things)
https://www.esp8266.com/
rudy wrote:You did not say what language you are programming in. But yes you can. Just use D1 or D3 instead of say D4. Just make sure you disable the serial port function if it is enabled.
You can activate any “FUNCTION” with pinMode(pin, FUNCTION1) for example.
// this will swap the pin to a GPIO
pinMode(1, FUNCTION3);
// this will restore the pin to Tx
pinMode(1, FUNCTION0);