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_custompin Class Reference

PCF8574 I2C class with special character support. More...

#include <lcd_PCF8574.h>

Inheritance diagram for LiquidCrystal_PCF8574_custompin:
LiquidCrystal_PCF8574 LiquidCrystal_PCF8574_4004

Public Member Functions

 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 with special character support.


This class can be used with a PCF8574 - a 8 channel I2C portexpander. Use this class if you need a custom pin assignment There are two different versions of PCF8574: some have address 0x3F to 0x30, some have address 0x27 to 0x20.

Constructor & Destructor Documentation

◆ LiquidCrystal_PCF8574_custompin() [1/4]

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 
)
inline

constructor for a LCD on PCF8574 with free pin assignement

This constructor accepts the default Wire interface and default character converter.

Parameters
lcdAddrthe I2C address
rsPinthe RS pin on PCF8574
enPinthe 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

◆ LiquidCrystal_PCF8574_custompin() [2/4]

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,
CallBack  funcPtr 
)
inline

constructor for a LCD on PCF8574 with free pin assignement

This constructor accepts an indidvidual character converter

Parameters
lcdAddrthe I2C address
rsPinthe RS pin on PCF8574
enPinthe 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_custompin() [3/4]

LiquidCrystal_PCF8574_custompin::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 
)
inline

constructor for a LCD on PCF8574 with free pin assignement

This constructor accepts a Wire interface but uses a default character converter

Parameters
i2cPortthe I2C port, e.g. Wire
lcdAddrthe I2C address
rsPinthe RS pin on PCF8574
enPinthe 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

◆ LiquidCrystal_PCF8574_custompin() [4/4]

LiquidCrystal_PCF8574_custompin::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 
)
inline

constructor for a LCD on PCF8574 with free pin assignement

This constructor accepts a Wire interface and a indidvidual character converter

Parameters
i2cPortthe I2C port, e.g. Wire
lcdAddrthe I2C address
rsPinthe RS pin on PCF8574
enPinthe 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