|
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
|
This is basic class for custom user-defined interfaces This is template, which accepts maximum number of bytes in interface buffer as template argument. More...
#include <custom_interface.h>
Public Member Functions | |
| _ICustom (int8_t dc=-1) | |
| Creates instance of custom basic interface. | |
| virtual | ~_ICustom () |
| Destroys instance of custom basic interface. | |
| virtual void | begin () |
| Initializes basic class for custom interface. | |
| virtual void | end () |
| Deinitializes basic class for custom interface. | |
| virtual void | start () |
| Starts communication with the display over custom interface. | |
| virtual void | stop () |
| Ends communication with the display over custom interface. More... | |
| void | send (uint8_t data) |
| Sends byte to custom interface. More... | |
| void | sendBuffer (const uint8_t *buffer, uint16_t size) |
| Sends bytes to custom interface. More... | |
Protected Member Functions | |
| virtual void | transferToHw (const uint8_t *buffer, uint16_t size)=0 |
| This function must implement actual sending of data to hardware interface. | |
| void | forceTransfer () |
| Call this method to transfer data to hardware. More... | |
| int8_t | getDc () |
| Returns number of D/C pin if used, or -1. | |
This is basic class for custom user-defined interfaces This is template, which accepts maximum number of bytes in interface buffer as template argument.
Definition at line 38 of file custom_interface.h.
|
inlineprotected |
Call this method to transfer data to hardware.
This method is called automatically, when internal interface buffer is overflown.
Definition at line 134 of file custom_interface.h.
|
inline |
Sends byte to custom interface.
| data | - byte to send |
Definition at line 96 of file custom_interface.h.
|
inline |
Sends bytes to custom interface.
Sends bytes to custom interface.
| buffer | - bytes to send |
| size | - number of bytes to send |
Definition at line 114 of file custom_interface.h.
|
inlinevirtual |
Ends communication with the display over custom interface.
Definition at line 88 of file custom_interface.h.