SoftwareSerial \ Libraries \ Wiring 1.0 (ALPHA)

| Index

| Reference for Wiring 1.0 (ALPHA) 0021+. If you have a previous version, use the reference included with your software. If you see any errors or have any comments, let us know.

Name |  | ### SoftwareSerial
Examples |  |
    #include <SoftwareSerial.h>

    int val;
    SoftwareSerial port = SoftwareSerial(8, 9);

    void setup() {
      pinMode(8, INPUT);  // rx pin
      pinMode(9, OUTPUT);  // tx pin
      port.begin(9600);  // Start serial Serial at 9600 baud
    }

    void loop() {
      val = port.read(); // read a value and echo it
      port.print(val);
    }
Description |  | The SoftwareSerial class allows for creation and manipulation of software serial ports, allowing for additional serial ports besides the two hardware ports available in the Wiring I/O board. Typical baudrates are: 2400, 4800, 9600, 14400, 19200, 28800, 38400, 57600 and 115200.
Syntax |  |
    SoftwareSerial
Methods |  |
begin() |  |
read() |  |
print() |  |
println() |  |
available() |  |
Returns |  | None
Usage |  | Application