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

PCF8574 I2C class for 4004 displays with special character support. More...

#include <lcd_PCF8574.h>

Inheritance diagram for LiquidCrystal_PCF8574_4004:
LiquidCrystal_PCF8574_custompin LiquidCrystal_PCF8574

Public Member Functions

 LiquidCrystal_PCF8574_4004 (uint8_t lcdAddr, uint8_t rsPin, uint8_t enPin, uint8_t en2Pin, uint8_t d4Pin, uint8_t d5Pin, uint8_t d6Pin, uint8_t d7Pin, uint8_t blPin, t_backlightPol blType, uint8_t cols, uint8_t rows, CallBack funcPtr=convert)
 constructor for a 4004 LCD on PCF8574 More...
 
 LiquidCrystal_PCF8574_4004 (TwoWire &i2cPort, uint8_t lcdAddr, uint8_t rsPin, uint8_t enPin, uint8_t en2Pin, uint8_t d4Pin, uint8_t d5Pin, uint8_t d6Pin, uint8_t d7Pin, uint8_t blPin, t_backlightPol blType, uint8_t cols, uint8_t rows, CallBack funcPtr=convert)
 constructor for a 4004 LCD on PCF8574 More...
 
- Public Member Functions inherited from LiquidCrystal_PCF8574_custompin
 LiquidCrystal_PCF8574_custompin (uint8_t lcdAddr, uint8_t rsPin, uint8_t, uint8_t enPin, uint8_t d4Pin, uint8_t d5Pin, uint8_t d6Pin, uint8_t d7Pin, uint8_t blPin, t_backlightPol blType, uint8_t cols, uint8_t rows)
 constructor for a LCD on PCF8574 with free pin assignement More...
 
 LiquidCrystal_PCF8574_custompin (uint8_t lcdAddr, uint8_t rsPin, uint8_t, uint8_t enPin, uint8_t d4Pin, uint8_t d5Pin, uint8_t d6Pin, uint8_t d7Pin, uint8_t blPin, t_backlightPol blType, uint8_t cols, uint8_t rows, CallBack funcPtr)
 constructor for a LCD on PCF8574 with free pin assignement More...
 
 LiquidCrystal_PCF8574_custompin (TwoWire &i2cPort, uint8_t lcdAddr, uint8_t rsPin, uint8_t, uint8_t enPin, uint8_t d4Pin, uint8_t d5Pin, uint8_t d6Pin, uint8_t d7Pin, uint8_t blPin, t_backlightPol blType, uint8_t cols, uint8_t rows)
 constructor for a LCD on PCF8574 with free pin assignement More...
 
 LiquidCrystal_PCF8574_custompin (TwoWire &i2cPort, uint8_t lcdAddr, uint8_t rsPin, uint8_t, uint8_t enPin, uint8_t d4Pin, uint8_t d5Pin, uint8_t d6Pin, uint8_t d7Pin, uint8_t blPin, t_backlightPol blType, uint8_t cols, uint8_t rows, CallBack funcPtr)
 constructor for a LCD on PCF8574 with free pin assignement More...
 
- Public Member Functions inherited from LiquidCrystal_PCF8574
 LiquidCrystal_PCF8574 (uint8_t lcd_Addr, uint8_t lcd_cols, uint8_t lcd_rows)
 constructor for a LCD on PCF8574 with faster communication More...
 
 LiquidCrystal_PCF8574 (uint8_t lcd_Addr, uint8_t lcd_cols, uint8_t lcd_rows, CallBack funcPtr)
 constructor for a LCD on PCF8574 More...
 
 LiquidCrystal_PCF8574 (TwoWire &i2cPort, uint8_t lcd_Addr, uint8_t lcd_cols, uint8_t lcd_rows)
 constructor for a LCD on PCF8574 with faster communication More...
 
 LiquidCrystal_PCF8574 (TwoWire &i2cPort, uint8_t lcd_Addr, uint8_t lcd_cols, uint8_t lcd_rows, CallBack funcPtr)
 constructor for a LCD on PCF8574 More...
 
size_t write (uint8_t value)
 writes a character to the LCD More...
 

Detailed Description

PCF8574 I2C class for 4004 displays with special character support.


This class can be used with a PCF8574 - a 8 channel I2C portexpander. no pin is left for RW. Connect RW to ground.

Constructor & Destructor Documentation

◆ LiquidCrystal_PCF8574_4004() [1/2]

LiquidCrystal_PCF8574_4004::LiquidCrystal_PCF8574_4004 ( uint8_t  lcdAddr,
uint8_t  rsPin,
uint8_t  enPin,
uint8_t  en2Pin,
uint8_t  d4Pin,
uint8_t  d5Pin,
uint8_t  d6Pin,
uint8_t  d7Pin,
uint8_t  blPin,
t_backlightPol  blType,
uint8_t  cols,
uint8_t  rows,
CallBack  funcPtr = convert 
)
inline

constructor for a 4004 LCD on PCF8574

This constructor accepts optional an indidvidual character converter

Parameters
lcdAddrthe I2C address
rsPinthe RS pin on PCF8574
enPinthe first Enable pin
en2Pinthe second Enable pin
d4Pindata pin 4
d5Pindata pin 5
d6Pindata pin 6
d7Pindata pin 7
blPinpin on PCF8574 for backlight
blTypeset to POSITIVE or NEGATIVE
colsthe columns 8, 16, 20, 24 or 40
rowsthe rows: 1, 2, or 4
funcPtra callback to convert UTF-8 characters

◆ LiquidCrystal_PCF8574_4004() [2/2]

LiquidCrystal_PCF8574_4004::LiquidCrystal_PCF8574_4004 ( TwoWire &  i2cPort,
uint8_t  lcdAddr,
uint8_t  rsPin,
uint8_t  enPin,
uint8_t  en2Pin,
uint8_t  d4Pin,
uint8_t  d5Pin,
uint8_t  d6Pin,
uint8_t  d7Pin,
uint8_t  blPin,
t_backlightPol  blType,
uint8_t  cols,
uint8_t  rows,
CallBack  funcPtr = convert 
)
inline

constructor for a 4004 LCD on PCF8574

This constructor accepts a Wire interface and an indidvidual character converter. All 8 IOs of the PCF8574 will be used. No free pin for RW which must be set to GND by hardware.

Parameters
i2cPortthe I2C port, e.g. Wire
lcdAddrthe I2C address
rsPinthe RS pin on PCF8574
enPinthe first Enable pin
en2Pinthe second Enable pin
d4Pindata pin 4
d5Pindata pin 5
d6Pindata pin 6
d7Pindata pin 7
blPinpin on PCF8574 for backlight
blTypeset to POSITIVE or NEGATIVE
colsthe columns 8, 16, 20, 24 or 40
rowsthe rows: 1, 2, or 4
funcPtra callback to convert UTF-8 characters