LCDGFX LCD display driver
2.0.1
This library is developed to control SSD1306/SSD1325/SSD1327/SSD1331/SSD1351/IL9163/PCD8554 RGB i2c/spi LED displays
|
#include <ssd1306_i2c_embedded.h>
Public Member Functions | |
SoftwareI2c (int8_t scl=-1, int8_t sda=-1, uint8_t sa=0x00) | |
void | begin () |
void | end () |
void | start () |
void | stop () |
void | send (uint8_t data) |
void | sendBuffer (const uint8_t *buffer, uint16_t size) |
Sends bytes to SSD1306 device. More... | |
void | setAddr (uint8_t addr) |
Class implements i2c software interface for AVR platform
Definition at line 36 of file ssd1306_i2c_embedded.h.
SoftwareI2c::SoftwareI2c | ( | int8_t | scl = -1 , |
int8_t | sda = -1 , |
||
uint8_t | sa = 0x00 |
||
) |
Creates i2c interface instance for SDL Emulation mode
scl | pin number to use as clock |
sda | pin number to use as data line |
sa | i2c address of the display (7 bits) |
void SoftwareI2c::begin | ( | ) |
Initializes i2c interface
void SoftwareI2c::end | ( | ) |
Closes i2c interface
void SoftwareI2c::send | ( | uint8_t | data | ) |
Sends byte to SSD1306 device
data | - byte to send |
void SoftwareI2c::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 94 of file ssd1306_i2c_embedded.h.
void SoftwareI2c::start | ( | ) |
Starts communication with SSD1306 display.
void SoftwareI2c::stop | ( | ) |
Ends communication with SSD1306 display.