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
Classes | Functions | Variables
I2C/SPI: physical interface functions

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
 

Detailed Description

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.

Function Documentation

◆ ssd1306_commandStart()

void ssd1306_commandStart ( void  )

Starts transaction for sending commands.

Warning
C-style API only

Definition at line 47 of file interface.c.

◆ ssd1306_dataStart()

void ssd1306_dataStart ( void  )

Starts transaction for sending bitmap data.

Warning
C-style API only

Definition at line 56 of file interface.c.

◆ ssd1306_sendCommand()

void ssd1306_sendCommand ( uint8_t  command)

Sends command to SSD1306 device: includes initiating of transaction, sending data and completing transaction.

Parameters
command- command to send
Warning
C-style API only

Definition at line 65 of file interface.c.

◆ ssd1306_spiDataMode()

void ssd1306_spiDataMode ( uint8_t  mode)

Switches spi to data(1) or command(0) mode.

Parameters
mode- 1 data mode 0 command mode
Warning
C-style API only

Definition at line 39 of file interface.c.

Variable Documentation

◆ s_ssd1306_cs

int8_t s_ssd1306_cs

chip enable pin to controll lcd display over spi

Warning
C-style API only

Definition at line 28 of file interface.c.

◆ s_ssd1306_dc

int8_t s_ssd1306_dc

data/command control pin for spi interface of lcd display

Warning
C-style API only

Definition at line 29 of file interface.c.

◆ s_ssd1306_spi_clock

uint32_t s_ssd1306_spi_clock

maximum SPI clock, supported by OLED display

Warning
C-style API only

Definition at line 30 of file interface.c.

◆ ssd1306_intf

ssd1306_interface_t ssd1306_intf

Holds pointers to functions of currently initialized interface.

Definition at line 34 of file interface.c.