Giter VIP home page Giter VIP logo

Comments (6)

ladyada avatar ladyada commented on August 27, 2024

it must be some other part of your code.
https://github.com/adafruit/Adafruit_VEML7700/search?q=Adafruit_Sensor

from adafruit_veml7700.

glyndon avatar glyndon commented on August 27, 2024

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.

ladyada avatar ladyada commented on August 27, 2024

yep - but this isnt the BMP3xx library - it does not have that dep :)

from adafruit_veml7700.

glyndon avatar glyndon commented on August 27, 2024

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.

ladyada avatar ladyada commented on August 27, 2024

sounds like ESPHome needs to add it then, it isnt a dep for this librayr. please tell ESPHome to fix

from adafruit_veml7700.

glyndon avatar glyndon commented on August 27, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.