-->
Page 1 of 1

I2C connection

PostPosted: Fri Aug 07, 2015 5:19 am
by Guimoz
Hi,
I am quite new to the ESP8266 world but I have been learning a lot recently.
My purpose is to be able to control a led strip with a webpage provided by the ESP. The led strip is controlled with Mosfets and a PCA9685 board (a simple PWM module). This board communicates via I2C. The only working library I have found for the PCA is using the Wire library included in the Arduino IDE. If I use the IDE I can successfully send orders to the PCA.
However I want to use ESP-HTTPD so I can't use the Arduino IDE.

I wanted to know how I could use the Wire library in the ESP-HTTPD .

Do you have any suggestion ?
If you think that I should do my project differently tell me.

Thanks for your help

PS : I have found an I2C library : https://github.com/eadf/esp8266_i2c_master but if I use it I would have to rewrite my own PCA9685 library and I am no C expert at all
If you want to read the PCA9685 datasheet it is here