Read Rx pin on ESP-07 at start as GPIO to check correct start bit level?

Can I read the level of the input on the serial Rx pin of an ESP-07 module in order to determine if I need to use invert on the serial receive?

The device attaches to a data source which operates via an opto coupler and I do not know in advance which level is the start bit level (0 or 1).
So I figured that if I can read the level on pin 15 (RxD) before doing Serial(begin), then I could determine if the invert on the Rx pin must be set or not.
But I don't know if this can be done at all...

Sounds like a reasonable thing to do. I would try it.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.