Detect Serial1 on Arduino UNO and MEGA

0 votes
654 views
asked Aug 1, 2017 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 1762 views
asked Mar 15, 2017 in Arduino by Manoj
0 votes
2 answers 639 views
asked Aug 1, 2017 in Arduino by nwbi
+2 votes
1 answer 595 views
+1 vote
1 answer 1237 views
+1 vote
0 answers 446 views
0 votes
1 answer 800 views
...