|
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 support via Wire library for Arduino platforms. More...
#include <arduino_wire.h>

Public Member Functions | |
| ArduinoI2c (int8_t scl=-1, int8_t sda=-1, uint8_t sa=0x00) | |
| Creates i2c implementation instance for Arduino platform. 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 support via Wire library for Arduino platforms.
Definition at line 35 of file arduino_wire.h.
|
explicit |
Creates i2c implementation instance for Arduino platform.
| scl | clock pin to use for i2c |
| sda | data pin to use for i2c |
| sa | i2c address of the device to control over i2c |
| void ArduinoI2c::send | ( | uint8_t | data | ) |
Sends byte to SSD1306 device.
| data | - byte to send |
| void ArduinoI2c::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 91 of file arduino_wire.h.