Comments (6)
it must be some other part of your code.
https://github.com/adafruit/Adafruit_VEML7700/search?q=Adafruit_Sensor
from adafruit_veml7700.
The "Adafruit Unified Sensor" library is included on the depends line in the BMP3XX library's properties file. So the behaviour between the two is not consistent, hence surprising and thought you might want them to be consistent.
I was able to workaround this by naming the needed library as a dependency in my ESPHome YAML file, even though it wasn't needed for another project that uses the BMP3XX library.
from adafruit_veml7700.
yep - but this isnt the BMP3xx library - it does not have that dep :)
from adafruit_veml7700.
Wouldn't compile until I added it.
All I'm trying to bring up is that it may not be needed by Arduino's preprocessor, but that it does seem to be needed for ESPHome's compiler. In the separate project (the one with BMP3xx), that lib wasn't mentioned either, but got included by 'depends', so everything has always compiled fine.
In the VEML's library it's not in 'depends', not mentioned in the docs, and an ESPHome compile fails without it.
from adafruit_veml7700.
sounds like ESPHome needs to add it then, it isnt a dep for this librayr. please tell ESPHome to fix
from adafruit_veml7700.
You are correct. Mine was a sloppy workaround - adding the Unified lib must've caused another inclusion that pio needed.
Adjusting the YAML to specify only the 7700 and BusIO libs takes care of it nicely. I'll pass this along to ESPHome if they ever compose a built-in integration for it. I had to build this one as a 'Custom Sensor' by hand, as I had done for the BMP388.
Thanks for the needed details to make this build cleanly.
from adafruit_veml7700.
Related Issues (13)
- Lux calc fix HOT 6
- Gain and Integration Time Not Changing HOT 1
- Bug in example code HOT 4
- Delay introduced when reading sensor from v1.2.0 to v2.0.1 HOT 5
- Auto lux not working for low light levels HOT 3
- When I tried to build the sample app, it requires Adafruit_i2cDevice.h and Adafruit_I2cregister.h . These files are not found by the compiler. I checked on my machine, and no files of these names exist anywhere on my machine. There is not such file in the library, nor is there another library that has a name like this. The only places I could find the names in a github search were in the header files for Adafruit_VEML7700 sources that do a #include. Something is missing here. HOT 1
- VEML7700 with D1 mini and Tasmota HOT 2
- ESP32 Compile Issues
- Auto Lux gets stuck in dark conditions HOT 4
- Reading value stuck HOT 2
- readLux() will return -1 for NOWAIT options HOT 1
- Lux value does not exceed 471.85 LUX. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adafruit_veml7700.