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
SPlatformI2cConfig Struct Reference

Structure describes i2c platform configuration. More...

#include <interface.h>

Public Attributes

int8_t busId
 bus id number. More...
 
uint8_t addr
 Address of i2c device to control. More...
 
int8_t scl
 Pin to use as i2c clock pin. More...
 
int8_t sda
 Pin to use as i2c data pin. More...
 
uint32_t frequency
 Frequency in HZ to run spi bus at. More...
 

Detailed Description

Structure describes i2c platform configuration.

Warning
Not all fields are used by specific platforms

Definition at line 43 of file interface.h.

Member Data Documentation

◆ addr

uint8_t SPlatformI2cConfig::addr

Address of i2c device to control.

This is mandatory argument for all platforms

Definition at line 54 of file interface.h.

◆ busId

int8_t SPlatformI2cConfig::busId

bus id number.

this parameter is valid for Linux, ESP32. If -1 is pointed, it defaults to platform specific i2c bus (Linux i2c-dev0, esp32 I2C_NUM_0).

Definition at line 49 of file interface.h.

◆ frequency

uint32_t SPlatformI2cConfig::frequency

Frequency in HZ to run spi bus at.

Zero value defaults to platform optimal clock speed (100kHz or 400kHz depending on platform).

Definition at line 72 of file interface.h.

◆ scl

int8_t SPlatformI2cConfig::scl

Pin to use as i2c clock pin.

This parameter is not used in Linux. If -1 is pointed, the library uses default clock pin for specific platform.

Definition at line 60 of file interface.h.

◆ sda

int8_t SPlatformI2cConfig::sda

Pin to use as i2c data pin.

This parameter is not used in Linux. If -1 is pointed, the library uses default data pin for specific platform.

Definition at line 66 of file interface.h.


The documentation for this struct was generated from the following file: