Statistics: Posted by rudi — Sat Jul 23, 2016 9:41 pm
scargill wrote:
The ESP can send multiple bytes to the Arduino - no problem -
but I haven't a clue how to get multiple bytes back into the ESP.
scargill wrote:
Repeated reads causes the ESP to crash so clearly I'm missing somebut I can't find anything out there - examples of using the SDK code for communications - indeed there aren't even any examples in the SDK.
Anyone familiar with this scenario??
Code:
void i2c_master_gpio_init(void);
void i2c_master_init(void);
void i2c_master_start(void);
void i2c_master_stop(void);
void i2c_master_setAck(uint8 level);
uint8 i2c_master_getAck(void);
uint8 i2c_master_readByte(void);
void i2c_master_writeByte(uint8 wrdata);
bool i2c_master_checkAck(void);
void i2c_master_send_ack(void);
void i2c_master_send_nack(void);
Code:
if ( Address & 1 )..
Code:
i2c_master_send_ack(void);
Code:
LAST = i2c_ArduinoSlave_TxByte(data);
while ( LAST == 0 )
// ACK = 0, NACK = 1
Statistics: Posted by rudi — Wed Jul 20, 2016 7:58 am
Statistics: Posted by scargill — Tue Jul 19, 2016 12:33 am
I2C_Demo_For_ESP8266_RTOS_SDK is a demo about I2C based on ESP8266_RTOS_SDK.
I2C_Demo_For_ESP8266_RTOS_SDK 为基于 ESP8266_RTOS_SDK 的 I2C 应用的示例。
Statistics: Posted by ESP_Faye — Thu May 26, 2016 11:47 am