#include <LCD.h>
List of all members.
Detailed Description
Definition at line 118 of file LCD.h.
Constructor & Destructor Documentation
Member Function Documentation
void LCD::autoscroll |
( |
void |
| ) |
|
Turns on automatic scrolling of the LCD. Turns on automatic scrolling of the LCD. This causes each character output to the display to push previous characters over by one space. If the current text direction is left-to-right (the default), the display scrolls to the left; if the current direction is right-to-left, the display scrolls to the right. This has the effect of outputting each new character to the same location on the LCD.
- Parameters:
-
Definition at line 158 of file LCD.cpp.
virtual void LCD::begin |
( |
uint8_t |
cols, |
|
|
uint8_t |
rows, |
|
|
uint8_t |
charsize = LCD_5x8DOTS |
|
) |
| [inline, virtual] |
LCD initialization. Initializes the LCD to a given size (col, row). This methods initializes the LCD, therefore, it MUST be called prior to using any other method from this class.
This method is pure abstract, it is dependent on each derived class from this base class to implement the internals of how the LCD is initialized and configured.
- Parameters:
-
cols[in] | the number of columns that the display has |
rows[in] | the number of rows that the display has |
Reimplemented in LiquidCrystal, LiquidCrystal_I2C, and LiquidCrystal_SR.
Definition at line 145 of file LCD.h.
Display the cursor of the LCD. Display the blinking LCD cursor. If used in combination with the cursor() function, the result will depend on the particular display.
- Parameters:
-
Definition at line 127 of file LCD.cpp.
Clears the LCD. Clears the LCD screen and positions the cursor in the upper-left corner.
This operation is time consuming for the LCD.
- Parameters:
-
Definition at line 60 of file LCD.cpp.
void LCD::command |
( |
uint8_t |
value | ) |
|
Send a command to the LCD. This method sends a command to the LCD by setting the Register select line of the LCD.
This command shouldn't be used to drive the LCD, only to implement any other feature that is not available on this library.
- Parameters:
-
value[in] | Command value to send to the LCD. |
Definition at line 186 of file LCD.cpp.
void LCD::createChar |
( |
uint8_t |
location, |
|
|
uint8_t |
charmap[] |
|
) |
| |
Creates a custom character for use on the LCD. Create a custom character (glyph) for use on the LCD. Most chipsets only support up to eight characters of 5x8 pixels. Therefore, this methods has been limited to locations (numbered 0 to 7).
The appearance of each custom character is specified by an array of eight bytes, one for each row. The five least significant bits of each byte determine the pixels in that row. To display a custom character on screen, write()/print() its number, i.e. lcd.print (char(x)); // Where x is 0..7.
- Parameters:
-
location[in] | LCD memory location of the character to create (0 to 7) |
charmap[in] | the bitmap array representing each row of the character. |
Definition at line 172 of file LCD.cpp.
Display the LCD cursor. Display the LCD cursor: an underscore (line) at the location where the next character will be written.
- Parameters:
-
Definition at line 114 of file LCD.cpp.
Turns on the LCD display. Turns on the LCD display, after it's been turned off with noDisplay(). This will restore the text (and cursor location) that was on the display prior to calling noDisplay().
- Parameters:
-
Definition at line 102 of file LCD.cpp.
Sets the cursor to the upper-left corner. Positions the cursor in the upper-left of the LCD. That is, use that location in outputting subsequent text to the display. To also clear the display, use the clear() function instead.
This operation is time consuming for the LCD.
- Parameters:
-
Definition at line 66 of file LCD.cpp.
void LCD::leftToRight |
( |
void |
| ) |
|
Set the direction for text written to the LCD to left-to-right. Set the direction for text written to the LCD to left-to-right. All subsequent characters written to the display will go from left to right, but does not affect previously-output text.
This is the default configuration.
- Parameters:
-
Definition at line 144 of file LCD.cpp.
void LCD::noAutoscroll |
( |
void |
| ) |
|
Turns off automatic scrolling of the LCD. Turns off automatic scrolling of the LCD, this is the default configuration of the LCD.
- Parameters:
-
Definition at line 165 of file LCD.cpp.
Turns off the blinking of the LCD cursor.
- Parameters:
-
Definition at line 121 of file LCD.cpp.
Hides the LCD cursor.
- Parameters:
-
Definition at line 109 of file LCD.cpp.
Turns off the LCD display. Turns off the LCD display, without losing the text currently being displayed on it.
- Parameters:
-
Definition at line 96 of file LCD.cpp.
void LCD::rightToLeft |
( |
void |
| ) |
|
Set the direction for text written to the LCD to right-to-left. Set the direction for text written to the LCD to right-to-left. All subsequent characters written to the display will go from right to left, but does not affect previously-output text.
left-to-right is the default configuration.
- Parameters:
-
Definition at line 151 of file LCD.cpp.
void LCD::scrollDisplayLeft |
( |
void |
| ) |
|
Scrolls the contents of the display (text and cursor) one space to the left.
- Parameters:
-
Definition at line 134 of file LCD.cpp.
void LCD::scrollDisplayRight |
( |
void |
| ) |
|
Scrolls the contents of the display (text and cursor) one space to the right.
- Parameters:
-
Definition at line 139 of file LCD.cpp.
virtual void LCD::send |
( |
uint8_t |
value, |
|
|
uint8_t |
mode |
|
) |
| [inline, virtual] |
Send a particular value to the LCD. Sends a particular value to the LCD. This is a pure abstract method, therefore, it is implementation dependent of each derived class how to physically write to the LCD.
Users should never call this method.
- Parameters:
-
value[in] | Value to send to the LCD. |
- Returns:
- mode LOW - write to the LCD CGRAM, HIGH - write a command to the LCD.
Reimplemented in LiquidCrystal, LiquidCrystal_I2C, and LiquidCrystal_SR.
Definition at line 376 of file LCD.h.
void LCD::setCursor |
( |
uint8_t |
col, |
|
|
uint8_t |
row |
|
) |
| |
Position the LCD cursor. Sets the position of the LCD cursor. Set the location at which subsequent text written to the LCD will be displayed.
- Parameters:
-
col[in] | LCD column |
row[in] | LCD row - line. |
Definition at line 72 of file LCD.cpp.
void LCD::write |
( |
uint8_t |
value | ) |
[virtual] |
Writes to the LCD. This method writes character to the LCD in the current cursor position.
This is the virtual write method, implemented in the Print class, therefore all Print class methods will end up calling this method.
- Parameters:
-
value[in] | Value to write to the LCD. |
Definition at line 192 of file LCD.cpp.
Member Data Documentation
The documentation for this class was generated from the following files:
- /Users/fmalpartida/development/ardWorkspace/LiquidCrystal_I2C/LiquiCrystal_I2C/LCD.h
- /Users/fmalpartida/development/ardWorkspace/LiquidCrystal_I2C/LiquiCrystal_I2C/LCD.cpp