enjoyneering / bh1750fvi Goto Github PK
View Code? Open in Web Editor NEWThis is an Arduino library for the ROHM BH1750FVI Ambient Light Sensor
This is an Arduino library for the ROHM BH1750FVI Ambient Light Sensor
Thanks for developing this library. I just bought a breakout board with BH1750FVI and found this library works great!
But one thing I found is that readLightLevel gives a very different value when the sensitivity is changed from 1 to another. I believe the reason is that, in the readLightLevel method, rawLightLevel is multiplied by _sensitivity. If I divided by _sensitivity, it could give me consistent values regardless of the sensitivity. Could you take a look? Thanks in advance.
Dear @enjoyneering,
was it your intention that other modes than BH1750_ONE_TIME_HIGH_RES_MODE_2
, BH1750_ONE_TIME_LOW_RES_MODE
do have a integration time greater than zero?
My understanding is that in continuous operation mode you don't have to necessarily wait before reading out the sensor.
If it wasn't your intention you could add a break statement after each case of switch(_sensorResolution)
. If it is your intention you might want to adjust the documentation string of readLightLevel
accordingly.
Thanks for consideration and kind regards,
randombitflip
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.