Arduino Playground is read-only starting December 31st, 2018. For more info please look at this Forum Post

serLCD

print()

Description

Prints text to the LCD.

Syntax

lcd.print(data)
lcd.print(data, BASE)

Parameters

lcd: a variable of type serLCD

data: the data to print (char, byte, int, long, or string)

BASE (optional): the base in which to print numbers: BIN for binary (base 2), DEC for decimal (base 10), OCT for octal (base 8), HEX for hexadecimal (base 16).

Example

  1. /*
  2.   serLCD - Hello World Example
  3. */
  4. #include <NewSoftSerial.h>
  5. #include <serLCD.h>
  6.  
  7. // Set pin to the LCD's rxPin
  8. int pin = 2;
  9.  
  10. serLCD lcd(pin);
  11.  
  12. void setup()
  13. {
  14.   lcd.print("hello, world!");
  15. }
  16.  
  17. void loop() {}