Skip to content

Corrected comments of rx and tx in a SoftwareSerial example. #4716

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

The circuit:
Two devices which communicate serially are needed.
* First serial device's TX attached to digital pin 2, RX to pin 3
* Second serial device's TX attached to digital pin 4, RX to pin 5
* First serial device's TX attached to digital pin 10(RX), RX to pin 11(TX)
* Second serial device's TX attached to digital pin 8(RX), RX to pin 9(TX)

Note:
Not all pins on the Mega and Mega 2560 support change interrupts,
Expand All @@ -26,7 +26,7 @@
8, 9, 10, 11, 14 (MISO), 15 (SCK), 16 (MOSI).

created 18 Apr. 2011
modified 25 May 2012
modified 19 March 2016
by Tom Igoe
based on Mikal Hart's twoPortRXExample

Expand All @@ -35,10 +35,10 @@
*/

#include <SoftwareSerial.h>
// software serial #1: TX = digital pin 10, RX = digital pin 11
// software serial #1: RX = digital pin 10, TX = digital pin 11
SoftwareSerial portOne(10, 11);

// software serial #2: TX = digital pin 8, RX = digital pin 9
// software serial #2: RX = digital pin 8, TX = digital pin 9
// on the Mega, use other pins instead, since 8 and 9 don't work on the Mega
SoftwareSerial portTwo(8, 9);

Expand Down