Open wazoo666 opened 2 years ago
Does the location of the “vl6180x.h” file match the location you have specified under “include:” portion of the .yaml file?
thankU @jakardia for your fast response.
I think yes. "vl6180x.h" file is on same folder than esphome project /config/esphome/test-sonoff.yaml...
this are my initial lines ........................ esphome: name: test-sonoff platform: ESP8266 board: esp01_1m
includes:
that is starting response from compiler....
HARDWARE: ESP8266 80MHz, 80KB RAM, 1MB Flash LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf Library Manager: Installing pololu/VL6180X @ 1.3.1
Unpacking [------------------------------------] 0%
Unpacking [##----------------------------------] 7%
Unpacking [#####-------------------------------] 14%
Unpacking [#######-----------------------------] 21%
Unpacking [##########--------------------------] 28%
Unpacking [############------------------------] 35%
Unpacking [###############---------------------] 42%
Unpacking [##################------------------] 50%
Unpacking [####################----------------] 57%
Unpacking [#######################-------------] 64%
Unpacking [#########################-----------] 71%
Unpacking [############################--------] 78%
Unpacking [##############################------] 85%
Unpacking [#################################---] 92%
Unpacking [####################################] 100%
Library Manager: VL6180X @ 1.3.1 has been installed!
Dependency Graph
|--
5 | #include ~~~
compilation terminated.
*** [/data/test-sonoff/.pioenvs/test-sonoff/libb32/VL6180X/VL6180X.cpp.o] Error 1
========================= [FAILED] Took 134.71 seconds =========================
Hi I am no t a expert in coding, but I tried to configure a VL6180x module on HomeAssistant using ESPhome addon, but can not make it work. Could you help me ?
I have installed other I2C devices on same bus, and they works fine, but when tried to add vl6180x sentences as your yaml code, esphome compiler crash, it ask for "wire.h" "....... Looking for Wire.h dependency....."
why it is asking for wire.h library? because it is used for other I2C devices I have defined on my code, like BMP180 module on same SDA/SCL pin. If I remove vl6180x declarations and complile code, once uploaded and looking for logger file, I can see both BMP180 address and VL6180x address, so ToF device is detected.
thankU