Trinket M0 UART

Adafruit's tiny microcontroller platform. Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
goldwin
 
Posts: 15
Joined: Mon Jan 25, 2021 9:37 pm

Trinket M0 UART

Post by goldwin »

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

User avatar
dastels
 
Posts: 15659
Joined: Tue Oct 20, 2015 3:22 pm

Re: Trinket M0 UART

Post by dastels »

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

User avatar
goldwin
 
Posts: 15
Joined: Mon Jan 25, 2021 9:37 pm

Re: Trinket M0 UART

Post by goldwin »

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

User avatar
dastels
 
Posts: 15659
Joined: Tue Oct 20, 2015 3:22 pm

Re: Trinket M0 UART

Post by dastels »

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

Locked
Please be positive and constructive with your questions and comments.

Return to “Trinket ATTiny, Trinket M0”