Enable Serial2
on the 2 series
#703
clarkbremer
started this conversation in
Library discussion
Replies: 3 comments
-
There are no tinyavr parts with a Serial2. You want Serial1. There's Serial
and Serial1. Take care if using the .swap() method. There are 2 serial
ports each pf which can be on 1 of 2 pairs of pins, but serial default
pinscand serial1 alt pins are the same pins
…____________
Spence Konde
Azzy’S Electronics
New products! Check them out at tindie.com/stores/DrAzzy
GitHub: github.com/SpenceKonde
ATTinyCore: Arduino support for almost every ATTiny microcontroller
Contact: ***@***.***
On Mon, May 9, 2022, 11:00 Clark Bremer ***@***.***> wrote:
Using ATtiny824, and naively attempted to set up Serial2 the same way I
would on an old "mega" board. What's the trick for using the second uart on
the "2" series?
—
Reply to this email directly, view it on GitHub
<#703>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTXEW2GPP5D4TXSQAPZKLLVJESADANCNFSM5VOSA5GA>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
And of course that works perfectly. Thanks, Spence. I was thinking Serial == Serial1. The ESP32 has 3 uarts, which is why that worked for me in the past. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yup. On dxcore but I don't think here, Serial is just a #define and the
actual object is called Serial0, so that one could create a variant file
wher default port wasn't the zeroth one. With only two ports sharing 3
pairs of pins one of which is only present on larger parts it seemed silly.
…____________
Spence Konde
Azzy’S Electronics
New products! Check them out at tindie.com/stores/DrAzzy
GitHub: github.com/SpenceKonde
ATTinyCore: Arduino support for almost every ATTiny microcontroller
Contact: ***@***.***
On Mon, May 9, 2022, 14:52 Clark Bremer ***@***.***> wrote:
And of course that works perfectly. Thanks, Spence. I was thinking Serial
== Serial1. The ESP32 has 3 uarts, which is why that worked for me in the
past.
—
Reply to this email directly, view it on GitHub
<#703 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABTXEW7R5LGJVPXRNPXGL6TVJFNGBANCNFSM5VOSA5GA>
.
You are receiving this because you commented.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Using ATtiny824, and naively attempted to set up
Serial2
the same way I would on an old "mega" board. What's the trick for using the second uart on the "2" series?Beta Was this translation helpful? Give feedback.
All reactions