Mbed for ESIMEos / Mbed 2 deprecated FRDM-KL46Z_LCD_I2C_demo

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

LiquidCrystal_I2C Class Reference

LiquidCrystal_I2C Class Reference

This is the driver for the Liquid Crystal LCD displays that use the I2C bus. More...

#include <LiquidCrystal_I2C.h>

Public Member Functions

 LiquidCrystal_I2C (uint8_t lcd_addr, uint8_t lcd_cols, uint8_t lcd_rows, uint8_t charsize=LCD_5x8DOTS)
 Constructor.
void begin ()
 Set the LCD display in the correct begin state, must be called before anything else is done.
void clear ()
 Remove all the characters currently shown.
void home ()
 Next print/write operation will will start from the first position on the LCD display.
void noDisplay ()
 Do not show any characters on the LCD display.
void display ()
 Show the characters on the LCD display, this is the normal behaviour.
void noBlink ()
 Do not blink the cursor indicator.
void blink ()
 Start blinking the cursor indicator.
void noCursor ()
 Do not show a cursor indicator.
void cursor ()
 Show a cursor indicator, cursor can blink on not blink.

Detailed Description

This is the driver for the Liquid Crystal LCD displays that use the I2C bus.

After creating an instance of this class, first call begin() before anything else. The backlight is on by default, since that is the most likely operating mode in most cases.

Definition at line 96 of file LiquidCrystal_I2C.h.


Constructor & Destructor Documentation

LiquidCrystal_I2C ( uint8_t  lcd_addr,
uint8_t  lcd_cols,
uint8_t  lcd_rows,
uint8_t  charsize = LCD_5x8DOTS 
)

Constructor.

Parameters:
lcd_addrI2C slave address of the LCD display. Most likely printed on the LCD circuit board, or look in the supplied LCD documentation.
lcd_colsNumber of columns your LCD display has.
lcd_rowsNumber of rows your LCD display has.
charsizeThe size in dots that the display has, use LCD_5x10DOTS or LCD_5x8DOTS.

Definition at line 111 of file LiquidCrystal_I2C.cpp.


Member Function Documentation

void begin (  )

Set the LCD display in the correct begin state, must be called before anything else is done.

Definition at line 120 of file LiquidCrystal_I2C.cpp.

void blink (  )

Start blinking the cursor indicator.

Definition at line 224 of file LiquidCrystal_I2C.cpp.

void clear (  )

Remove all the characters currently shown.

Next print/write operation will start from the first position on LCD display.

Definition at line 181 of file LiquidCrystal_I2C.cpp.

void cursor (  )

Show a cursor indicator, cursor can blink on not blink.

Use the methods blink() and noBlink() for changing cursor blink.

Definition at line 214 of file LiquidCrystal_I2C.cpp.

void display (  )

Show the characters on the LCD display, this is the normal behaviour.

This method should only be used after noDisplay() has been used.

Definition at line 204 of file LiquidCrystal_I2C.cpp.

void home (  )

Next print/write operation will will start from the first position on the LCD display.

Definition at line 186 of file LiquidCrystal_I2C.cpp.

void noBlink (  )

Do not blink the cursor indicator.

Definition at line 220 of file LiquidCrystal_I2C.cpp.

void noCursor (  )

Do not show a cursor indicator.

Definition at line 210 of file LiquidCrystal_I2C.cpp.

void noDisplay (  )

Do not show any characters on the LCD display.

Backlight state will remain unchanged. Also all characters written on the display will return, when the display in enabled again.

Definition at line 200 of file LiquidCrystal_I2C.cpp.