Detect Serial1 on Arduino UNO and MEGA

0 votes
asked Aug 1 in Arduino by Mithun
Is it possible to detect Serial1 is present on an arduino board, and if Serial1 is not available use Serial itself? Idea is to make a single program which can run on both UNO and MEGA so that I have to look after the pins only during production, and the software will cares the rest. Please let me know your thoughts on this.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.

Related questions

+2 votes
1 answer 765 views
0 votes
1 answer 227 views
asked Aug 1 in Arduino by nwbi
+2 votes
1 answer 526 views
+1 vote
1 answer 574 views
+1 vote
0 answers 334 views
0 votes
1 answer 660 views