Search wiring.org.co:

Reference for Wiring version 0024+. 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.

Class | SoftwareSerial
Name | ### println()
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.println(val);
    }
Description | The println() method writes data to the serial port. This is often helpful for looking at the data a program is producing or just to write data to other devices connected to the serial port. The println method works like print, but sends a new line character for each call to the function. Data can either be a single int, float, byte (BYTE), long, char, char[], String or a number in decimal (DEC), hexadecimal (HEX) , octal (OCT), or binary (BIN) base.
Syntax |
    serial.println(data)
    serial.println(data, base)
Parameters |
data | int, float, long, byte, char, char[] or String
base | BYTE, DEC, HEX, OCT or BIN
serial | The software serial port variable
Returns | None
Usage | Application

Updated on November 02, 2009 12:52:31am PST