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

Native I2C default class with special character support. More...

#include <lcd_wire.h>

Inherits LiquidCrystal_Wire_base.

Public Member Functions

 LiquidCrystal_Wire (uint8_t lcdAddr, uint8_t cols, uint8_t rows)
 constructor for a native I2C LCD More...
 
 LiquidCrystal_Wire (uint8_t lcdAddr, uint8_t cols, uint8_t rows, CallBack funcPtr)
 constructor for a native I2C LCD More...
 
 LiquidCrystal_Wire (TwoWire &i2cPort, uint8_t lcdAddr, uint8_t cols, uint8_t rows)
 constructor for a native I2C LCD More...
 
 LiquidCrystal_Wire (TwoWire &i2cPort, uint8_t lcdAddr, uint8_t cols, uint8_t rows, CallBack funcPtr)
 constructor for a native I2C LCD More...
 

Detailed Description

Native I2C default class with special character support.

Some LCD come with a native I2C support. Here we use 8bit mode. This class is NOT for the usage with portexpanders like the PCF8574.

Constructor & Destructor Documentation

◆ LiquidCrystal_Wire() [1/4]

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

constructor for a native I2C LCD

This constructor uses the default character converter

Parameters
lcdAddrthe I2C address
colsthe columns 8, 16, 20, 24 or 40
rowsthe rows: 1, 2, or 4

◆ LiquidCrystal_Wire() [2/4]

LiquidCrystal_Wire::LiquidCrystal_Wire ( uint8_t  lcdAddr,
uint8_t  cols,
uint8_t  rows,
CallBack  funcPtr 
)
inline

constructor for a native I2C LCD

This constructor accepts a indidvidual character converter

Parameters
lcdAddrthe I2C address
colsthe columns 8, 16, 20, 24 or 40
rowsthe rows: 1, 2, or 4
funcPtra callback to convert UTF-8 characters

◆ LiquidCrystal_Wire() [3/4]

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

constructor for a native I2C LCD

This constructor accepts a Wire interface and uses the custom converter

Parameters
i2cPortthe I2C port, i.e. Wire
lcdAddrthe I2C address
colsthe columns 8, 16, 20, 24 or 40
rowsthe rows: 1, 2, or 4

◆ LiquidCrystal_Wire() [4/4]

LiquidCrystal_Wire::LiquidCrystal_Wire ( TwoWire &  i2cPort,
uint8_t  lcdAddr,
uint8_t  cols,
uint8_t  rows,
CallBack  funcPtr 
)
inline

constructor for a native I2C LCD

This constructor accepts a Wire interface and a indidvidual character converter

Parameters
i2cPortthe I2C port, i.e. Wire
lcdAddrthe I2C address
colsthe columns 8, 16, 20, 24 or 40
rowsthe rows: 1, 2, or 4
funcPtra callback to convert UTF-8 characters