Lightweight C library for HTML5 websockets
lws-ssd1306-i2c.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  lws_display_ssd1306


#define SSD1306_I2C7_ADS1   0x3c
#define SSD1306_I2C7_ADS2   0x3d
#define lws_display_ssd1306_ops


typedef struct lws_display_ssd1306 lws_display_ssd1306_t


int lws_display_ssd1306_i2c_init (lws_display_state_t *lds)
int lws_display_ssd1306_i2c_contrast (lws_display_state_t *lds, uint8_t b)
int lws_display_ssd1306_i2c_blit (lws_display_state_t *lds, const uint8_t *src, lws_box_t *box, lws_dll2_owner_t *ids)
int lws_display_ssd1306_i2c_power (lws_display_state_t *lds, int state)

Data Structure Documentation

◆ lws_display_ssd1306

struct lws_display_ssd1306

Definition at line 36 of file lws-ssd1306-i2c.h.

+ Collaboration diagram for lws_display_ssd1306:
Data Fields
lws_display_t disp
const lws_i2c_ops_t * i2c
lws_display_completion_t cb
const lws_gpio_ops_t * gpio
_lws_plat_gpio_t reset_gpio
uint8_t i2c7_address

Macro Definition Documentation

◆ SSD1306_I2C7_ADS1

#define SSD1306_I2C7_ADS1   0x3c

Definition at line 33 of file lws-ssd1306-i2c.h.

◆ SSD1306_I2C7_ADS2

#define SSD1306_I2C7_ADS2   0x3d

Definition at line 34 of file lws-ssd1306-i2c.h.

◆ lws_display_ssd1306_ops

#define lws_display_ssd1306_ops
int lws_display_ssd1306_i2c_power(lws_display_state_t *lds, int state)
int lws_display_ssd1306_i2c_contrast(lws_display_state_t *lds, uint8_t b)
int lws_display_ssd1306_i2c_blit(lws_display_state_t *lds, const uint8_t *src, lws_box_t *box, lws_dll2_owner_t *ids)
int lws_display_ssd1306_i2c_init(lws_display_state_t *lds)

Definition at line 59 of file lws-ssd1306-i2c.h.

Typedef Documentation

◆ lws_display_ssd1306_t

Function Documentation

◆ lws_display_ssd1306_i2c_init()

int lws_display_ssd1306_i2c_init ( lws_display_state_t lds)

◆ lws_display_ssd1306_i2c_contrast()

int lws_display_ssd1306_i2c_contrast ( lws_display_state_t lds,
uint8_t  b 

◆ lws_display_ssd1306_i2c_blit()

int lws_display_ssd1306_i2c_blit ( lws_display_state_t lds,
const uint8_t src,
lws_box_t box,
lws_dll2_owner_t ids 

◆ lws_display_ssd1306_i2c_power()

int lws_display_ssd1306_i2c_power ( lws_display_state_t lds,
int  state