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

#include <lcd_st7735.h>

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

Public Member Functions

template<typename... Args>
 InterfaceST7735 (NanoDisplayBase< InterfaceST7735< 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 ()
 
void setRotation (uint8_t rotation)
 Sets screen orientation (rotation) More...
 
void setOffset (lcdint_t ox, lcdint_t oy)
 Sets display offset in GDRAM memory. More...
 
void setRgbMode (uint8_t mode)
 Sets RGB mode used by dispay controller. More...
 

Detailed Description

template<class I>
class InterfaceST7735< I >

Class implements interface functions to ST7735 displays

Definition at line 43 of file lcd_st7735.h.

Constructor & Destructor Documentation

◆ InterfaceST7735()

template<class I>
template<typename... Args>
InterfaceST7735< I >::InterfaceST7735 ( NanoDisplayBase< InterfaceST7735< 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_st7735.h.

Member Function Documentation

◆ commandStart()

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

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

Definition at line 83 of file lcd_st7735.inl.

◆ endBlock()

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

Closes data send operation to lcd display.

Definition at line 70 of file lcd_st7735.inl.

◆ nextBlock()

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

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

Definition at line 66 of file lcd_st7735.inl.

◆ setDataMode()

template<class I >
void InterfaceST7735< 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 75 of file lcd_st7735.inl.

◆ setOffset()

template<class I >
void InterfaceST7735< I >::setOffset ( lcdint_t  ox,
lcdint_t  oy 
)

Sets display offset in GDRAM memory.

Some lcd displays do not use COM0, ROW0 lines. It depends on display manufacturer. So, in this case you need to use setOffset() method to tell the library about this hardware specific. This method sets GDRAM display offset in pixels

Parameters
oxx-axis offset in pixels
oyy-axis offset in pixels

Definition at line 129 of file lcd_st7735.inl.

◆ setRgbMode()

template<class I >
void InterfaceST7735< I >::setRgbMode ( uint8_t  mode)

Sets RGB mode used by dispay controller.

Sets RGB mode used by display controller. 0 - for BGR, 1 - for RGB

Parameters
modergb mode for SSD1351 controller: 0 - BGR, 1 - RGB

Definition at line 143 of file lcd_st7735.inl.

◆ setRotation()

template<class I >
void InterfaceST7735< I >::setRotation ( uint8_t  rotation)

Sets screen orientation (rotation)

Sets screen orientation (rotation): 0 - normal, 1 - 90 CW, 2 - 180 CW, 3 - 270 CW

Parameters
rotation- screen rotation 0 - normal, 1 - 90 CW, 2 - 180 CW, 3 - 270 CW

Definition at line 92 of file lcd_st7735.inl.

◆ startBlock()

template<class I >
void InterfaceST7735< 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 ST7735 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_st7735.inl.


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