Search found 3 matches

by apollo0226
Tue Oct 25, 2016 11:01 am
Forum: Documentation Request
Topic: I2C Slave Mode
Replies: 57
Views: 64975

Re: I2C Slave Mode

I am using NodeMCU. I am using Arduino IDE. Here is my the first setting. SCL -> D1 -> GPIO5 SDA -> D2 -> GPIO4 twi_sda = sda; twi_scl = scl; pinMode(twi_sda, INPUT_PULLUP); pinMode(twi_scl, INPUT_PULLUP); twi_setClock(100000); twi_setClockStretchLimit(230); // default value is 230 uS This seems not...
by apollo0226
Mon Oct 24, 2016 10:54 pm
Forum: Documentation Request
Topic: I2C Slave Mode
Replies: 57
Views: 64975

Re: I2C Slave Mode

I know how to set the GPIO and ISR. Now I set the SDA a low active Interrupt. So when the Interrupt first trigger , it must be start condition, because SCL is high, SDA is low. So I get the 8 bit and set ACK, this is slave address and R/W bit. I compare it , is this my slave address? if no , set the...
by apollo0226
Mon Oct 24, 2016 4:41 pm
Forum: Documentation Request
Topic: I2C Slave Mode
Replies: 57
Views: 64975

Re: I2C Slave Mode

Do we get any official support from espressif ?
Or any sample code?
I do need this.

Go to advanced search