I'm thinking to a new project where I will need from 2 up to 4 serial output (TX only) @ 31250bps.
On Arduino Docs I read about the SoftwareSerial which could be the best solution since the HW is not yet selected (and I can not have 4 ports anyway). Possibly it will be a ESP-WROOM-32 or ESP32-WROVER.
In the DOCs it states:
SoftwareSerial(rxPin, txPin, inverse_logic)
My question is: since I do not need (use) the rxPin) should I assign a pin anyway (leaving it unused) or define the same pin for every declaration loosing only one phisical pin, or defining rxPin = 0 or...
Thanks
The SoftwareSerial is not going to work on a ESp32.
An answer to the question to me lies in using the ESP32's serial API instead of using the ESP32's Arduino Core. Using the ESP32's UART API, only one direction needs be used, only a Rx or a Tx pin, the non used pin is a NULL.
This is a good idea; I saw this document and possibly it could sastisfy my need; unfortunately it is quite difficult fo my knowledge, particularly for the driver and interrupts parts.
I will see, thanks