Reference.SoftwareSerialConstructor History

Hide minor edits - Show changes to markup

September 24, 2011, at 12:12 AM by Tom Igoe -
Changed lines 16-17 from:

[@#define rxPin 2

to:
Changed lines 21-22 from:

SoftwareSerial mySerial = SoftwareSerial(rxPin, txPin);@]

to:
September 12, 2011, at 05:00 AM by Scott Fitzgerald -
Changed lines 5-6 from:

A call to SoftwareSerial(rxPin, txPin) creates a new SoftwareSerial object, whose name you need to provide as in the example below. You still need to call SoftwareSerial.begin().

to:

A call to SoftwareSerial(rxPin, txPin) creates a new SoftwareSerial object, whose name you need to provide as in the example below.

You need to call SoftwareSerial.begin() to enable communication.

April 29, 2007, at 12:11 PM by David A. Mellis -
Changed lines 16-17 from:
  1. define ledPin 13
to:
April 26, 2007, at 07:17 PM by Paul Badger -
Changed lines 5-6 from:

A call to SoftwareSerial(rxPin, txPin) creates a new SoftwareSerial object. You still need to call SoftwareSerial.begin().

to:

A call to SoftwareSerial(rxPin, txPin) creates a new SoftwareSerial object, whose name you need to provide as in the example below. You still need to call SoftwareSerial.begin().

April 26, 2007, at 07:16 PM by Paul Badger -
Changed lines 5-6 from:

Creates a new SoftwareSerial object. You still need to call SoftwareSerial.begin().

to:

A call to SoftwareSerial(rxPin, txPin) creates a new SoftwareSerial object. You still need to call SoftwareSerial.begin().

Changed lines 14-15 from:

SoftwareSerial serial(6, 7);

to:
#define rxPin 2
#define txPin 3
#define ledPin 13

// set up a new serial port
SoftwareSerial mySerial =  SoftwareSerial(rxPin, txPin);
December 23, 2006, at 05:01 AM by David A. Mellis -
Changed lines 18-21 from:
to:
December 23, 2006, at 05:00 AM by David A. Mellis -
Changed line 18 from:
to:
December 23, 2006, at 04:56 AM by David A. Mellis -
Added lines 17-21:
December 23, 2006, at 04:54 AM by David A. Mellis -
Changed lines 14-16 from:
SoftwareSerial serial(6, 7);
to:

SoftwareSerial serial(6, 7);

December 23, 2006, at 04:54 AM by David A. Mellis -
Changed line 14 from:

[@ SoftwareSerial serial(6, 7);

to:

[@SoftwareSerial serial(6, 7);

December 23, 2006, at 04:54 AM by David A. Mellis -
Changed lines 14-15 from:
 [@

SoftwareSerial serial(6, 7);

to:

[@ SoftwareSerial serial(6, 7);

December 23, 2006, at 04:54 AM by David A. Mellis -
Deleted line 13:
December 23, 2006, at 04:54 AM by David A. Mellis -
Changed lines 5-6 from:

Creates a new SoftwareSerial object. You still need to call SoftwareSerial_begin.

to:

Creates a new SoftwareSerial object. You still need to call SoftwareSerial.begin().

Added lines 13-19:

Example

 
SoftwareSerial serial(6, 7);

See also

December 06, 2006, at 12:06 AM by David A. Mellis -
Added lines 1-12:

SoftwareSerial(rxPin, txPin)

Description

Creates a new SoftwareSerial object. You still need to call SoftwareSerial_begin.

Parameters

rxPin: the pin on which to receive serial data

txPin: the pin on which to transmit serial data

Share