serial lines

Post Reply
tottig
Posts: 3
Joined: Mon Jan 14, 2019 7:14 pm

serial lines

Post by tottig » Sun Nov 24, 2019 11:23 am

Hi,
Using Serial.print I can send data via the USB connector.
What do I need to use in order to send data via the serial pins on X1/TXD and X2/TXD2 (MAXI Automation) ?
Is data sent via Serial.print also available at the X1/X2 pins?

User avatar
Lukas
Posts: 50
Joined: Tue Dec 18, 2018 3:44 pm

Re: serial lines

Post by Lukas » Mon Mar 09, 2020 12:32 pm

Hi,

the Serial sends data also to the pin TX / X1. It is the same UART which is forwarded to the USB. But, be careful - when you connect to TX and RX pins on X1 you can have some troubles during sketch upload then.

TX2 and RX2 are connected to Serial2. Just use it in the same way like Serial ... Serial2.print ...

Best regards,
Lukas

Post Reply