Page 1 of 1

I2C Example BH1750

Posted: Sun Oct 14, 2018 2:14 pm
by mikefw
Having just come to ESP32 and Eclipse, I am only just finding my way to something a little more ambitious after getting the likes of Blink and Hello World to compile.

I am working on the I2C sensor BH1750 using the example software in ESP_IDF. I have added a number of include files as required but the compiler is getting stuck with the following errors:
I2C.txt
(1.53 KiB) Downloaded 738 times
These are referred to in iot_i2c_bus.h which I have included, but it does not seem to help the compile error. This file also needs "driver/i2c.h" . I have included "i2c.h" which may not be exactly what it is after.

I suspect I am am making an elementary error, and I would appreciate some help in getting the better of it. Thanks.