|
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 i2c interface for Linux via i2c-dev. More...
#include <linux_i2c.h>
Public Member Functions | |
| LinuxI2c (int8_t busId=-1, uint8_t sa=0x00) | |
| Creates instance of I2C implementation for Linux (via i2cdev) More... | |
| void | begin () |
| Initializes i2c interface. | |
| void | end () |
| Closes i2c 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... | |
| void | setAddr (uint8_t addr) |
| Sets i2c address for communication This API is required for some led displays having multiple i2c addresses for different types of data. More... | |
Class implements i2c interface for Linux via i2c-dev.
Definition at line 37 of file linux_i2c.h.
|
explicit |
Creates instance of I2C implementation for Linux (via i2cdev)
| busId | i2c bus number, if -1 defaults to 1 |
| sa | i2c address of the display (7 bits) |
| void LinuxI2c::send | ( | uint8_t | data | ) |
Sends byte to SSD1306 device.
| data | - byte to send |
| void LinuxI2c::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 |
|
inline |
Sets i2c address for communication This API is required for some led displays having multiple i2c addresses for different types of data.
| addr | i2c address to set (7 bits) |
Definition at line 93 of file linux_i2c.h.