|
LCDGFX LCD display driver
1.2.0
Lightweight graphics library for SSD1306, SSD1325, SSD1327, SSD1331, SSD1351, SH1106, SH1107, IL9163, ST7735, ST7789, ILI9341, PCD8544 displays over I2C/SPI
|
Class implements interface functions to ILI9341 displays. More...
#include <lcd_ili9341.h>


Public Member Functions | |
| template<typename... Args> | |
| InterfaceILI9341 (NanoDisplayBase< InterfaceILI9341< I >> &base, int8_t dc, Args &&... data) | |
| Creates instance of interface to LCD display. More... | |
| 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 () |
| Switches to the start of next RAM page for the block, specified by startBlock(). More... | |
| void | endBlock () |
| Closes data send operation to lcd display. | |
| void | setDataMode (uint8_t mode) |
| Enables either data or command mode on SPI bus. More... | |
| void | commandStart () |
| Starts communication with LCD display in command mode. More... | |
| void | setRotation (uint8_t rotation) |
| Sets screen orientation (rotation) More... | |
| void | rotateOutput (uint8_t rotate) |
| Sets rotation of all output functions. More... | |
| void | normalMode () |
| Switches display to normal (non-inverted) mode (sends INVOFF command). More... | |
| void | invertMode () |
| Switches display to inverted mode (sends INVON command). More... | |
Class implements interface functions to ILI9341 displays.
Definition at line 43 of file lcd_ili9341.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 54 of file lcd_ili9341.h.
| void InterfaceILI9341< I >::commandStart | ( | ) |
Starts communication with LCD display in command mode.
To stop communication use m_intf.end().
Definition at line 77 of file lcd_ili9341.inl.
| void InterfaceILI9341< I >::invertMode | ( | ) |
Switches display to inverted mode (sends INVON command).
Use this to re-enable inversion if normalMode() was called.
Definition at line 134 of file lcd_ili9341.inl.
| void InterfaceILI9341< I >::nextBlock | ( | ) |
Switches to the start of next RAM page for the block, specified by startBlock().
For ILI9341 it does nothing, while for sh1106 the function moves cursor to next page.
Definition at line 59 of file lcd_ili9341.inl.
| void InterfaceILI9341< I >::normalMode | ( | ) |
Switches display to normal (non-inverted) mode (sends INVOFF command).
Definition at line 126 of file lcd_ili9341.inl.
| void InterfaceILI9341< I >::rotateOutput | ( | uint8_t | rotate | ) |
Sets rotation of all output functions.
Sets rotation of all output functions. 0 - no rotation, 1 - change by 90 degrees Actually doesn't change screen orientation, only rotates primitives being output
| rotate | enable (1) of disable (0) |
Definition at line 120 of file lcd_ili9341.inl.
| void InterfaceILI9341< I >::setDataMode | ( | 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 69 of file lcd_ili9341.inl.
| void InterfaceILI9341< I >::setRotation | ( | uint8_t | rotation | ) |
Sets screen orientation (rotation)
Sets screen orientation (rotation):
| rotation | screen rotation (0–3) |
Definition at line 86 of file lcd_ili9341.inl.
| void InterfaceILI9341< 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 ILI9341 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 35 of file lcd_ili9341.inl.