void clear();

Clears the LCD screen and positions the cursor in the upper-left corner.

This operation is time consuming for the LCD.

void home():

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.

void noDisplay();

Turns off the LCD display, without losing the text currently being displayed on it.

void 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().

void noBlink();

Turns off the blinking of the LCD cursor.

void blink();

Display the blinking LCD cursor. If used in combination with the cursor() function, the result will depend on the particular display.

void noCursor();

Hides the LCD cursor.

void cursor();

Display the LCD cursor: an underscore (line) at the location where the next character will be written.

void scrollDisplayLeft();

Scrolls the contents of the display (text and cursor) one space to the left.

void scrollDisplayRight();

Scrolls the contents of the display (text and cursor) one space to the right.

void leftToRight();

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.

void rightToLeft();

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.

void moveCursorLeft();

Moves the cursor one space to the left.

void moveCursorRight();

Moves the cursor one space to the right.

void autoscroll();

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.

void noAutoscroll();

Turns off automatic scrolling of the LCD, this is the default configuration of the LCD.

void createChar(uint8_t location, uint8_t charmap[]);

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.

param location[in] LCD memory location of the character to create (0 to 7)

param charmap[in] the bitmap array representing each row of the character.

void setCursor(uint8_t col, uint8_t row);

Sets the position of the LCD cursor. Set the location at which subsequent text written to the LCD will be displayed.

param col[in] LCD column

param row[in] LCD row - line.

void backlight ( void );

Switch-on the LCD backlight.

The setBacklightPin has to be called before setting the backlight for this method to work. @see setBacklightPin.

void noBacklight ( void );

Switch-off the LCD backlight.

The setBacklightPin has to be called before setting the backlight for this method to work. @see setBacklightPin.

void on ( void );

Switch on the LCD module, it will switch on the LCD controller and the backlight. This method has the same effect of calling display and backlight. @see display, @see backlight

void off ( void );

Switch off the LCD module, it will switch off the LCD controller and the backlight. This method has the same effect of calling noDisplay and noBacklight. @see display, @see backlight

Ultime modifiche: sabato, 16 maggio 2020, 17:38