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 341 views
0 votes
1 answer 12 views
asked Aug 1 in Arduino by nwbi
+2 votes
1 answer 450 views
+1 vote
1 answer 205 views
+1 vote
0 answers 258 views
0 votes
1 answer 538 views