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
|
i2c/spi initialization functions for different platforms More...
Classes | |
class | UsiSpi |
struct | SPlatformI2cConfig |
struct | SPlatformSpiConfig |
struct | ssd1306_interface_t |
Functions | |
void | ssd1306_sendCommand (uint8_t command) |
void | ssd1306_commandStart (void) |
void | ssd1306_dataStart (void) |
void | ssd1306_spiDataMode (uint8_t mode) |
Variables | |
ssd1306_interface_t | ssd1306_intf |
int8_t | s_ssd1306_cs |
int8_t | s_ssd1306_dc |
uint32_t | s_ssd1306_spi_clock |
i2c/spi initialization functions for different platforms
This group of API functions serves to prepare the library to work via specific hardware interface. There are a bunch of functions for different platforms. In general display initialization goes in two steps: hardware interface initialization, and then display driver initialization. But there are functions, which combine 2 steps in single call: ssd1306_128x64_i2c_initEx(), ssd1351_128x128_spi_init(), etc.
void ssd1306_commandStart | ( | void | ) |
Starts transaction for sending commands.
Definition at line 47 of file interface.c.
void ssd1306_dataStart | ( | void | ) |
Starts transaction for sending bitmap data.
Definition at line 56 of file interface.c.
void ssd1306_sendCommand | ( | uint8_t | command | ) |
Sends command to SSD1306 device: includes initiating of transaction, sending data and completing transaction.
command | - command to send |
Definition at line 65 of file interface.c.
void ssd1306_spiDataMode | ( | uint8_t | mode | ) |
Switches spi to data(1) or command(0) mode.
mode | - 1 data mode 0 command mode |
Definition at line 39 of file interface.c.
int8_t s_ssd1306_cs |
chip enable pin to controll lcd display over spi
Definition at line 28 of file interface.c.
int8_t s_ssd1306_dc |
data/command control pin for spi interface of lcd display
Definition at line 29 of file interface.c.
uint32_t s_ssd1306_spi_clock |
maximum SPI clock, supported by OLED display
Definition at line 30 of file interface.c.
ssd1306_interface_t ssd1306_intf |
Holds pointers to functions of currently initialized interface.
Definition at line 34 of file interface.c.