Nol.A SDK Library 26.11.2
For IoT System Software Development
Loading...
Searching...
No Matches
LiquidCrystal_I2C.hpp File Reference

Public driver declarations and configuration constants. More...

#include <inttypes.h>
#include <Print.hpp>
#include <TwoWire.hpp>

Classes

class  LiquidCrystal_I2C
 HD44780-compatible character display through an I2C backpack. Inherits Print for formatted text. The I2C bus must outlive the display. More...

Macros

#define LCD_CLEARDISPLAY   0x01
 HD44780 cleardisplay command or bit-field value.
#define LCD_RETURNHOME   0x02
 HD44780 returnhome command or bit-field value.
#define LCD_ENTRYMODESET   0x04
 HD44780 entrymodeset command or bit-field value.
#define LCD_DISPLAYCONTROL   0x08
 HD44780 displaycontrol command or bit-field value.
#define LCD_CURSORSHIFT   0x10
 HD44780 cursorshift command or bit-field value.
#define LCD_FUNCTIONSET   0x20
 HD44780 functionset command or bit-field value.
#define LCD_SETCGRAMADDR   0x40
 HD44780 setcgramaddr command or bit-field value.
#define LCD_SETDDRAMADDR   0x80
 HD44780 setddramaddr command or bit-field value.
#define LCD_ENTRYRIGHT   0x00
 HD44780 entryright command or bit-field value.
#define LCD_ENTRYLEFT   0x02
 HD44780 entryleft command or bit-field value.
#define LCD_ENTRYSHIFTINCREMENT   0x01
 HD44780 entryshiftincrement command or bit-field value.
#define LCD_ENTRYSHIFTDECREMENT   0x00
 HD44780 entryshiftdecrement command or bit-field value.
#define LCD_DISPLAYON   0x04
 HD44780 displayon command or bit-field value.
#define LCD_DISPLAYOFF   0x00
 HD44780 displayoff command or bit-field value.
#define LCD_CURSORON   0x02
 HD44780 cursoron command or bit-field value.
#define LCD_CURSOROFF   0x00
 HD44780 cursoroff command or bit-field value.
#define LCD_BLINKON   0x01
 HD44780 blinkon command or bit-field value.
#define LCD_BLINKOFF   0x00
 HD44780 blinkoff command or bit-field value.
#define LCD_DISPLAYMOVE   0x08
 HD44780 displaymove command or bit-field value.
#define LCD_CURSORMOVE   0x00
 HD44780 cursormove command or bit-field value.
#define LCD_MOVERIGHT   0x04
 HD44780 moveright command or bit-field value.
#define LCD_MOVELEFT   0x00
 HD44780 moveleft command or bit-field value.
#define LCD_8BITMODE   0x10
 HD44780 8bitmode command or bit-field value.
#define LCD_4BITMODE   0x00
 HD44780 4bitmode command or bit-field value.
#define LCD_2LINE   0x08
 HD44780 2line command or bit-field value.
#define LCD_1LINE   0x00
 HD44780 1line command or bit-field value.
#define LCD_5x10DOTS   0x04
 HD44780 5x10dots command or bit-field value.
#define LCD_5x8DOTS   0x00
 HD44780 5x8dots command or bit-field value.
#define LCD_BACKLIGHT   0x08
 HD44780 backlight command or bit-field value.
#define LCD_NOBACKLIGHT   0x00
 HD44780 nobacklight command or bit-field value.
#define En   0b00000100
#define Rw   0b00000010
#define Rs   0b00000001

Detailed Description

Public driver declarations and configuration constants.