Sming Framework API
Sming - Open Source framework for high efficiency WiFi SoC ESP8266 native development with C++ language.
|
Software I2C master class. More...
#include <I2cMaster.h>
Public Member Functions | |
SoftI2cMaster (uint8_t sdaPin, uint8_t sclPin) | |
uint8_t | read (uint8_t last) |
bool | restart (uint8_t addressRW) |
bool | start (uint8_t addressRW) |
void | stop (void) |
bool | write (uint8_t b) |
Software I2C master class.
|
virtual |
Read a byte
[in] | last | send Ack if last is false else Nak to terminate read |
Implements I2cMasterBase.
|
virtual |
Send new address and read/write bit without sending a stop.
[in] | addressRW | i2c address with read/write bit |
Implements I2cMasterBase.
|
virtual |
Issue a start condition
[in] | addressRW | i2c address with read/write bit |
Implements I2cMasterBase.
|
virtual |
Issue a stop condition.
Implements I2cMasterBase.
|
virtual |
Write a byte
[in] | data | byte to write |
Implements I2cMasterBase.