LCDGFX LCD display driver
1.0.2
This library is developed to control SSD1306/SSD1325/SSD1327/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays
|
#include <lcd_ssd1351.h>
Public Member Functions | |
template<typename... Args> | |
InterfaceSSD1351 (NanoDisplayBase< InterfaceSSD1351< 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 | spiDataMode (uint8_t mode) |
void | commandStart () |
Class implements interface functions to SSD1351 displays
Definition at line 44 of file lcd_ssd1351.h.
|
inline |
Creates instance of interface to LCD display.
base | Reference to base class, which represents Display |
dc | Data/command control pin number, for i2c communication should be -1 |
data | variable argument list, accepted by platform interface (PlatformI2c, PlatformSpi) |
Definition at line 55 of file lcd_ssd1351.h.
void InterfaceSSD1351< I >::commandStart | ( | ) |
Starts communication with LCD display in command mode. To stop communication use m_intf.end().
Definition at line 85 of file lcd_ssd1351.inl.
void InterfaceSSD1351< I >::endBlock | ( | ) |
Closes data send operation to lcd display.
Definition at line 70 of file lcd_ssd1351.inl.
void InterfaceSSD1351< I >::nextBlock | ( | ) |
Switches to the start of next RAM page for the block, specified by startBlock(). For SSD1351 it does nothing, while for sh1106 the function moves cursor to next page.
Definition at line 64 of file lcd_ssd1351.inl.
void InterfaceSSD1351< I >::spiDataMode | ( | uint8_t | mode | ) |
Enables either data or command mode on SPI bus
mode | 1 to enable data mode, or 0 to enable command mode |
Definition at line 76 of file lcd_ssd1351.inl.
void InterfaceSSD1351< 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 SSD1351 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.
x | - column (left region) |
y | - row (top region) |
w | - width of the block in pixels to control |
Definition at line 36 of file lcd_ssd1351.inl.