LCDGFX LCD display driver  1.1.5
This library is developed to control SSD1306/SSD1325/SSD1327/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays
InterfacePCD8544< I > Class Template Reference

#include <lcd_pcd8544.h>

Inheritance diagram for InterfacePCD8544< I >:
Collaboration diagram for InterfacePCD8544< I >:

Public Member Functions

template<typename... Args>
 InterfacePCD8544 (NanoDisplayBase< InterfacePCD8544< I >> &base, int8_t dc, Args &&... data)
 
void startBlock (lcduint_t x, lcduint_t y, lcduint_t w)
 Sets block in RAM of lcd display controller to write data to. More...
 
void nextBlock ()
 
void endBlock ()
 
void setDataMode (uint8_t mode)
 
void commandStart ()
 

Detailed Description

template<typename I>
class InterfacePCD8544< I >

Class implements interface functions to PCD8544 displays

Definition at line 43 of file lcd_pcd8544.h.

Constructor & Destructor Documentation

◆ InterfacePCD8544()

template<typename I>
template<typename... Args>
InterfacePCD8544< I >::InterfacePCD8544 ( NanoDisplayBase< InterfacePCD8544< I >> &  base,
int8_t  dc,
Args &&...  data 
)
inline

Creates instance of interface to LCD display.

Parameters
baseReference to base class, which represents Display
dcData/command control pin number, for i2c communication should be -1
datavariable argument list, accepted by platform interface (PlatformI2c, PlatformSpi)

Definition at line 54 of file lcd_pcd8544.h.

Member Function Documentation

◆ commandStart()

template<class I >
void InterfacePCD8544< I >::commandStart ( )

Starts communication with LCD display in command mode. To stop communication use m_intf.end().

Definition at line 73 of file lcd_pcd8544.inl.

◆ endBlock()

template<class I >
void InterfacePCD8544< I >::endBlock ( )

Closes data send operation to lcd display.

Definition at line 57 of file lcd_pcd8544.inl.

◆ nextBlock()

template<class I >
void InterfacePCD8544< I >::nextBlock ( )

Switches to the start of next RAM page for the block, specified by startBlock(). For PCD8544 it does nothing, while for sh1106 the function moves cursor to next page.

Definition at line 48 of file lcd_pcd8544.inl.

◆ setDataMode()

template<class I >
void InterfacePCD8544< I >::setDataMode ( uint8_t  mode)

Enables either data or command mode on SPI bus

Parameters
mode1 to enable data mode, or 0 to enable command mode

Definition at line 65 of file lcd_pcd8544.inl.

◆ startBlock()

template<class I >
void InterfacePCD8544< I >::startBlock ( lcduint_t  x,
lcduint_t  y,
lcduint_t  w 
)

Sets block in RAM of lcd display controller to write data to.

Sets block in RAM of lcd display controller to write data to. For PCD8544 it uses horizontal addressing mode, while for sh1106 the function uses page addressing mode. Width can be specified as 0, thus the library will set the right boundary to region of RAM block to the right column of the display.

Parameters
x- column (left region)
y- row (top region)
w- width of the block in pixels to control
Warning
- this function initiates session (i2c or spi) and does not close it. To close session, please, call endBlock().

Definition at line 35 of file lcd_pcd8544.inl.


The documentation for this class was generated from the following files: