LiquidCrystal::println()\ LiquidCrystal \ Language (API) \ Wiring ALPHA 1.0
Author: Hernando Barragán
Description: Wiring is an electronic sketchbook and hardware electronics for developing ideas. It is a context for learning fundamentals of computer programming and prototyping with electronics within the context of the electronic arts.
Keywords: Wiring, Processing, Interactive Media, Electronic Arts, Programming, C, C++, Hernando Barragán

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 | LiquidCrystal
Name | ### println()
Examples |
    #include "LiquidCrystal.h"

    LiquidCrystal myDisplay = LiquidCrystal(0,1,2,2);
    int a = 0;

    void setup()
    {

    }

    void loop()
    {
      myDisplay.clear();
      myDisplay.home();
      myDisplay.print("Variable a is: ");
      myDisplay.setCursor(16, 0);
      myDisplay.print(a);
      a = a + 1;
      delay(200);
    }
Description | The `println()` method writes data to the display. This is often helpful for looking at the data a program is producing or just to write data to a liquid crystal display connected to the Wiring I/O board. 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[], or a number in decimal (DEC), hexadecimal (HEX) , octal (OCT), or binary (BIN) base.
Syntax |
    display.println(data)
    display.println(data, base)
Parameters |
data | int, float, long, byte, char, char[] or String
base | BYTE, DEC, HEX, OCT or BIN
display | The LiquidCrystal object
Returns | None
Usage | Application

Updated on November 02, 2009 12:32:22am PST