Hi,
I am using the Arduino IDE and i want to send and receive UART Serial data on the pads marked Rx and TX (3 and 4). what are the necessary commands required to enable them and also the commands required to receive and transmit data. Thanks in advance.
Regards
-G
Trinket M0 UART
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- dastels
- Posts: 15658
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Trinket M0 UART
Here's a fairly in depth article on using serial/UART communication with C++/Arduino: https://www.engineersgarage.com/article ... tion-uart/.
On the Trinket M0, I suspect Serial1 will access the Tx/Rx pins.
Dave
On the Trinket M0, I suspect Serial1 will access the Tx/Rx pins.
Dave
- goldwin
- Posts: 15
- Joined: Mon Jan 25, 2021 9:37 pm
Re: Trinket M0 UART
Thanks Dave. I was looking more specifically in regards to Trinket M0. I tried multiple think but couldn't get it going. so am hoping some one might have successfully done it and can she that piece of code. or point me in the correct direction.
regards
-G
regards
-G
- dastels
- Posts: 15658
- Joined: Tue Oct 20, 2015 3:22 pm
Re: Trinket M0 UART
That article should get you started. It uses Serial since it's on an UNO. On the Trinket M0 Serial is the USB connection and Serial1 should be the UART that is on Tx/Rx.
Dave
Dave
Please be positive and constructive with your questions and comments.