Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bh1750 driver #445

Merged
merged 3 commits into from
Jul 11, 2023
Merged

Add bh1750 driver #445

merged 3 commits into from
Jul 11, 2023

Conversation

whatisbyandby
Copy link
Contributor

@brentru

This PR adds the I2C Component driver for the BH1750 sensor.

Product URL: https://www.adafruit.com/product/4681
Link to Component Definition issue: adafruit/Wippersnapper_Components#19

This drivers uses the hp_BH1750 library to communicate with the sensor

Library Repository: https://github.com/Starmbi/hp_BH1750

This implementation uses the One Time Measurement feature of the BH1750, with the default quality and MTreg settings recommended in the datasheet for the BH1750. Each reading should take approximately 120ms.

library.properties Show resolved Hide resolved
Copy link
Member

@brentru brentru left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR looks OK to me and addresses adding the BH1750 component per example code: https://github.com/Starmbi/hp_BH1750/blob/master/examples/Non_blocking/Non_blocking.ino.

Thank you for contributing, @whatisbyandby!

@brentru brentru merged commit c6983b1 into adafruit:main Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants