I2C Example BH1750

mikefw
Posts: 1
Joined: Sat Sep 29, 2018 2:18 pm

I2C Example BH1750

Postby mikefw » Sun Oct 14, 2018 2:14 pm

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 686 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.

Who is online

Users browsing this forum: Bing [Bot], MicroController, zelenecul and 96 guests