(SOLVED)Serial invert

Hi all,

I have an arduino mega project where I send serial data to an 74hct04n inverter.. now I'm porting the project on esp32 (M5Stack).

in the example serial2 of arduino IDE I can declare a serial port with:

Serial.begin(unsigned long baud, uint32_t config, int8_t rxPin, int8_t txPin, bool invert)

the question is:

can I use the invert option in serial declaration instead of 74hct04n inverter ic??

tnk a lot

What library is this code from ?

Serial.begin(unsigned long baud, uint32_t config, int8_t rxPin, int8_t txPin, bool invert)

I suspect the quickest way to answer your question is by trying it.

...R

I declare this one
and inside there is:
HardwareSerial.h

tnks for answering…

Apologies. I missed the fact that you want to port the code to an ESP32. I am not familiar with the ESP32

...R

yes I can!!!!

esp forum post

tnks a lot