Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ArduinoCore-avr
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
ArduinoCore-avr
Commits
2fa23a24
Commit
2fa23a24
authored
Apr 04, 2016
by
Sandeep Mistry
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4716 from asukiaaa/master
Corrected comments of rx and tx in a SoftwareSerial example.
parents
9eac8362
15f17aa0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
libraries/SoftwareSerial/examples/TwoPortReceive/TwoPortReceive.ino
...SoftwareSerial/examples/TwoPortReceive/TwoPortReceive.ino
+5
-5
No files found.
libraries/SoftwareSerial/examples/TwoPortReceive/TwoPortReceive.ino
View file @
2fa23a24
...
...
@@ -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,
...
...
@@ -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
...
...
@@ -35,10 +35,10 @@
*/
#include <SoftwareSerial.h>
// software serial #1:
TX = digital pin 10, R
X = digital pin 11
// software serial #1:
RX = digital pin 10, T
X = digital pin 11
SoftwareSerial
portOne
(
10
,
11
);
// software serial #2:
TX = digital pin 8, R
X = digital pin 9
// software serial #2:
RX = digital pin 8, T
X = digital pin 9
// on the Mega, use other pins instead, since 8 and 9 don't work on the Mega
SoftwareSerial
portTwo
(
8
,
9
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment