Noiasca Liquid Crystal
A light weight LCD Library to print UTF-8 and special characters easily.
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
LiquidCrystal_PCF8574_base Class Reference

#include <lcd_PCF8574.h>

Inheritance diagram for LiquidCrystal_PCF8574_base:
LiquidCrystal_dummy LiquidCrystal_PCF8574 LiquidCrystal_PCF8574_custompin LiquidCrystal_PCF8574_4004

Public Member Functions

 LiquidCrystal_PCF8574_base (uint8_t lcdAddr, uint8_t cols, uint8_t rows)
 
 LiquidCrystal_PCF8574_base (TwoWire &i2cPort, uint8_t lcdAddr, uint8_t cols, uint8_t rows)
 
size_t write (uint8_t value)
 writes a character to the LCD More...
 
void hwInit ()
 
void begin ()
 
void begin (uint8_t cols, uint8_t rows, uint8_t charsize=LCD_5x8DOTS)
 
void init ()
 
int setBacklight (uint8_t value)
 switch backlight on or off More...
 
int backlight ()
 switch backlight on More...
 
int noBacklight ()
 switch backlight off More...
 
void setLcdAddr (uint8_t lcdAddr)
 
- Public Member Functions inherited from LiquidCrystal_dummy
 LiquidCrystal_dummy (uint8_t, uint8_t)
 
void setDelay (uint8_t, char)
 
size_t writeOld (uint8_t)
 unmodified version of write More...
 
void command (uint8_t)
 Send a command to the display, for commands not supported by the library (LCD API) More...
 
void clear ()
 Clear the display and place cursor at 0,0 (LCD API) More...
 
void home ()
 Home the cursor to 0,0 and leave displayed characters (LCD API) More...
 
void setCursor (uint8_t, uint8_t)
 Where Row 0-MAXLINEs, and Col 0-MAXCOLUMNS. More...
 
void cursor ()
 Turn the block cursor on. More...
 
void cursor_on ()
 
void noCursor ()
 Turn the block cursor off. More...
 
void cursor_off ()
 
void blink ()
 Turn on the blinking underline cursor (LCD API blink_on) More...
 
void blink_on ()
 
void noBlink ()
 Turn off the blinking underline cursor (LCD blink_off) More...
 
void blink_off ()
 
void setContrast (int)
 
void on ()
 Turn the LCD display on (LCD API optional) More...
 
void off ()
 Turn the LCD display off (LCD API optional) More...
 
void createChar (const uint8_t, const uint8_t[])
 Load up a custom character (LCD API extend) More...
 
void load_custom_character (const uint8_t Char_Num, const uint8_t Rows[])
 
void createChar_P (const uint8_t, const uint8_t *)
 Load up a custom character from PROGMEM. More...
 
void createUml ()
 creates 3 German Umlauts using special characters 5, 6, and 7 More...
 
void setFont (uint8_t value=0)
 sets the used font More...
 

Protected Member Functions

void send (uint8_t value, uint8_t rs, uint8_t rw=rwWrite)
 
virtual void write4bits (uint8_t value, uint8_t rs=rsIR, uint8_t rw=rwWrite)
 
virtual void send (uint8_t, uint8_t, uint8_t=rwWrite)
 

Protected Attributes

TwoWire * i2cPort
 
uint8_t lcdAddr
 
uint8_t backlightState
 
- Protected Attributes inherited from LiquidCrystal_dummy
const uint8_t waitshort = 37
 
const uint16_t waitlong = 1500
 
uint8_t rowStartingAddress [4] {0x00, 0x40, 0x14, 0x54}
 
const uint8_t cols
 
const uint8_t rows
 
uint8_t currentRow = 255
 
uint8_t entrymodesetFlag
 
uint8_t displaycontrolFlag = displaycontrol_on
 
uint32_t special = 0
 

Static Protected Attributes

static const uint8_t rsPin = 0b00000001
 
static const uint8_t enPin = 0b00000100
 
static const uint8_t blPin = 0b00001000
 
- Static Protected Attributes inherited from LiquidCrystal_dummy
static const uint8_t cleardisplay = 0x01
 
static const uint8_t returnhome = 0x02
 
static const uint8_t entrymodeset = 0x04
 
static const uint8_t displaycontrol = 0x08
 
static const uint8_t cursorshift = 0x10
 
static const uint8_t functionset = 0x20
 
static const uint8_t setcgramaddress = 0x40
 
static const uint8_t setddramaddress = 0x80
 
static const uint8_t entrymode_shift = 0x01
 
static const uint8_t entrymode_increment = 0x02
 
static const uint8_t displaycontrol_blink = 0x01
 
static const uint8_t displaycontrol_cursor = 0x02
 
static const uint8_t displaycontrol_on = 0x04
 
static const uint8_t cursorshift_right = 0x04
 
static const uint8_t cursorshift_displayshift = 0x08
 
static const uint8_t functionset_font = 0x04
 
static const uint8_t functionset_lines = 0x08
 
static const uint8_t functionset_8bit = 0x10
 
static const byte rsIR = 0
 
static const byte rsDR = 1
 
static const byte rwWrite = 0
 
static const byte rwRead = 1
 

Constructor & Destructor Documentation

◆ LiquidCrystal_PCF8574_base() [1/2]

LiquidCrystal_PCF8574_base::LiquidCrystal_PCF8574_base ( uint8_t  lcdAddr,
uint8_t  cols,
uint8_t  rows 
)
inline

◆ LiquidCrystal_PCF8574_base() [2/2]

LiquidCrystal_PCF8574_base::LiquidCrystal_PCF8574_base ( TwoWire &  i2cPort,
uint8_t  lcdAddr,
uint8_t  cols,
uint8_t  rows 
)
inline

Member Function Documentation

◆ write()

size_t LiquidCrystal_PCF8574_base::write ( uint8_t  value)
inline

writes a character to the LCD

Base output without character converter

◆ hwInit()

void LiquidCrystal_PCF8574_base::hwInit ( )
inline

◆ begin() [1/2]

void LiquidCrystal_PCF8574_base::begin ( )
inline

◆ begin() [2/2]

void LiquidCrystal_PCF8574_base::begin ( uint8_t  cols,
uint8_t  rows,
uint8_t  charsize = LCD_5x8DOTS 
)
inline

◆ init()

void LiquidCrystal_PCF8574_base::init ( )
inline

◆ setBacklight()

int LiquidCrystal_PCF8574_base::setBacklight ( uint8_t  value)
inline

switch backlight on or off

Parameters
value0 = off; 1 = on

◆ backlight()

int LiquidCrystal_PCF8574_base::backlight ( )
inline

switch backlight on

◆ noBacklight()

int LiquidCrystal_PCF8574_base::noBacklight ( )
inline

switch backlight off

◆ setLcdAddr()

void LiquidCrystal_PCF8574_base::setLcdAddr ( uint8_t  lcdAddr)
inline

◆ send()

void LiquidCrystal_PCF8574_base::send ( uint8_t  value,
uint8_t  rs,
uint8_t  rw = rwWrite 
)
inlineprotectedvirtual

Reimplemented from LiquidCrystal_dummy.

◆ write4bits()

virtual void LiquidCrystal_PCF8574_base::write4bits ( uint8_t  value,
uint8_t  rs = rsIR,
uint8_t  rw = rwWrite 
)
inlineprotectedvirtual

Member Data Documentation

◆ i2cPort

TwoWire* LiquidCrystal_PCF8574_base::i2cPort
protected

◆ lcdAddr

uint8_t LiquidCrystal_PCF8574_base::lcdAddr
protected

◆ rsPin

const uint8_t LiquidCrystal_PCF8574_base::rsPin = 0b00000001
staticprotected

◆ enPin

const uint8_t LiquidCrystal_PCF8574_base::enPin = 0b00000100
staticprotected

◆ blPin

const uint8_t LiquidCrystal_PCF8574_base::blPin = 0b00001000
staticprotected

◆ backlightState

uint8_t LiquidCrystal_PCF8574_base::backlightState
protected