|
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 spi support for esp32 platform. More...
#include <esp32_spi.h>
Public Member Functions | |
| EspSpi (int8_t busId=-1, int8_t csPin=-1, int8_t dcPin=-1, int8_t clk=-1, int8_t mosi=-1, uint32_t frequency=8000000) | |
| Creates instance of spi implementation for ESP platform. More... | |
| void | begin () |
| Initializes spi interface. | |
| void | end () |
| Closes spi interface. | |
| void | start () |
| Starts communication with SSD1306 display. | |
| void | stop () |
| Ends communication with SSD1306 display. | |
| void | send (uint8_t data) |
| Sends byte to SSD1306 device. More... | |
| void | sendBuffer (const uint8_t *buffer, uint16_t size) |
| Sends bytes to SSD1306 device. More... | |
Class implements spi support for esp32 platform.
Definition at line 39 of file esp32_spi.h.
|
explicit |
Creates instance of spi implementation for ESP platform.
| busId | number of SPI bus to use: HSPI_HOST, VSPI_HOST |
| csPin | pin number to use as chip select, can be -1 |
| dcPin | pin to use as data command control pin |
| clk | pin to use as clock spi pin |
| mosi | pin to use as master output spi pin |
| frequency | frequency in HZ to run spi bus on |
| void EspSpi::send | ( | uint8_t | data | ) |
Sends byte to SSD1306 device.
| data | - byte to send |
| void EspSpi::sendBuffer | ( | const uint8_t * | buffer, |
| uint16_t | size | ||
| ) |
Sends bytes to SSD1306 device.
Sends bytes to SSD1306 device. This functions gives ~ 30% performance increase than ssd1306_intf.send.
| buffer | - bytes to send |
| size | - number of bytes to send |