AGirs
Macros
LiquidCrystal_I2C_bm.cpp File Reference
#include "LiquidCrystal_I2C_bm.h"
#include "Wire.h"
Include dependency graph for LiquidCrystal_I2C_bm.cpp:

Go to the source code of this file.

Macros

#define LCD_CLEARDISPLAY   0x01
 
#define LCD_RETURNHOME   0x02
 
#define LCD_ENTRYMODESET   0x04
 
#define LCD_DISPLAYCONTROL   0x08
 
#define LCD_CURSORSHIFT   0x10
 
#define LCD_FUNCTIONSET   0x20
 
#define LCD_SETCGRAMADDR   0x40
 
#define LCD_SETDDRAMADDR   0x80
 
#define LCD_ENTRYRIGHT   0x00
 
#define LCD_ENTRYLEFT   0x02
 
#define LCD_ENTRYSHIFTINCREMENT   0x01
 
#define LCD_ENTRYSHIFTDECREMENT   0x00
 
#define LCD_DISPLAYON   0x04
 
#define LCD_DISPLAYOFF   0x00
 
#define LCD_CURSORON   0x02
 
#define LCD_CURSOROFF   0x00
 
#define LCD_BLINKON   0x01
 
#define LCD_BLINKOFF   0x00
 
#define LCD_DISPLAYMOVE   0x08
 
#define LCD_CURSORMOVE   0x00
 
#define LCD_MOVERIGHT   0x04
 
#define LCD_MOVELEFT   0x00
 
#define LCD_8BITMODE   0x10
 
#define LCD_4BITMODE   0x00
 
#define LCD_2LINE   0x08
 
#define LCD_1LINE   0x00
 
#define LCD_BACKLIGHT   0x08
 
#define LCD_NOBACKLIGHT   0x00
 
#define En   B00000100
 
#define Rw   B00000010
 
#define Rs   B00000001
 

Macro Definition Documentation

◆ En

#define En   B00000100

Definition at line 45 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_1LINE

#define LCD_1LINE   0x00

Definition at line 39 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_2LINE

#define LCD_2LINE   0x08

Definition at line 38 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_4BITMODE

#define LCD_4BITMODE   0x00

Definition at line 37 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_8BITMODE

#define LCD_8BITMODE   0x10

Definition at line 36 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_BACKLIGHT

#define LCD_BACKLIGHT   0x08

Definition at line 42 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_BLINKOFF

#define LCD_BLINKOFF   0x00

Definition at line 27 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_BLINKON

#define LCD_BLINKON   0x01

Definition at line 26 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_CLEARDISPLAY

#define LCD_CLEARDISPLAY   0x01

Definition at line 6 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_CURSORMOVE

#define LCD_CURSORMOVE   0x00

Definition at line 31 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_CURSOROFF

#define LCD_CURSOROFF   0x00

Definition at line 25 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_CURSORON

#define LCD_CURSORON   0x02

Definition at line 24 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_CURSORSHIFT

#define LCD_CURSORSHIFT   0x10

Definition at line 10 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_DISPLAYCONTROL

#define LCD_DISPLAYCONTROL   0x08

Definition at line 9 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_DISPLAYMOVE

#define LCD_DISPLAYMOVE   0x08

Definition at line 30 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_DISPLAYOFF

#define LCD_DISPLAYOFF   0x00

Definition at line 23 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_DISPLAYON

#define LCD_DISPLAYON   0x04

Definition at line 22 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_ENTRYLEFT

#define LCD_ENTRYLEFT   0x02

Definition at line 17 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_ENTRYMODESET

#define LCD_ENTRYMODESET   0x04

Definition at line 8 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_ENTRYRIGHT

#define LCD_ENTRYRIGHT   0x00

Definition at line 16 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_ENTRYSHIFTDECREMENT

#define LCD_ENTRYSHIFTDECREMENT   0x00

Definition at line 19 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_ENTRYSHIFTINCREMENT

#define LCD_ENTRYSHIFTINCREMENT   0x01

Definition at line 18 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_FUNCTIONSET

#define LCD_FUNCTIONSET   0x20

Definition at line 11 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_MOVELEFT

#define LCD_MOVELEFT   0x00

Definition at line 33 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_MOVERIGHT

#define LCD_MOVERIGHT   0x04

Definition at line 32 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_NOBACKLIGHT

#define LCD_NOBACKLIGHT   0x00

Definition at line 43 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_RETURNHOME

#define LCD_RETURNHOME   0x02

Definition at line 7 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_SETCGRAMADDR

#define LCD_SETCGRAMADDR   0x40

Definition at line 12 of file LiquidCrystal_I2C_bm.cpp.

◆ LCD_SETDDRAMADDR

#define LCD_SETDDRAMADDR   0x80

Definition at line 13 of file LiquidCrystal_I2C_bm.cpp.

◆ Rs

#define Rs   B00000001

Definition at line 47 of file LiquidCrystal_I2C_bm.cpp.

◆ Rw

#define Rw   B00000010

Definition at line 46 of file LiquidCrystal_I2C_bm.cpp.