How to update wire.h?

I would like to program an I2C Slave on an ESP32 Dev. Board. It looks like this functionality was not available in the past, but has been added recently:

https://docs.espressif.com/projects/arduino-esp32/en/latest/api/i2c.html

However, although I believe that all my libraries in the Arduino IDE are up-to-date, I get an error message, when compiling:

'class TwoWire' has no member named 'slaveWrite'

This is the exact new function, which was added in the latest update of Wire.h.

So, how can I get the latest version of wire.h?

Your help would be appreciated.

Best regards

Ludwig

Whilst I don't know whether the sketch actually works, WireMaster.ino compiles for me

Arduino IDE 1.8.13
ESP32 boards 2.0.2


As to the Wire library, the compiler appears to have used the Wire library in C:\Users\Bob2\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.2\libraries, which makes sense

Which version of the ESP32 board files have you got installed ?

Your topic has been moved to a more suitable location on the forum. Installation and Troubleshooting is not for problems with your project.

Thank you, UKHeloBob. I had an old version of the ESP32 Dev Board files installed. After update to 2.0.2 the error message is gone.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.