-
Notifications
You must be signed in to change notification settings - Fork 747
component: update ambient light #3234
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems that before this PR, there were 2 components: Isl29035Component
and AmbientLightComponent
, and that AmbientLightComponent
would setup the isl29035 and then use it to expose the AmbientLight
driver, while one would use Isl29035Component
only if one did not want to use it with the AmbientLight
driver. Now, AmbientLightComponent
does not include the setup of Isl29035Component
, that has to be done seperately.
I think this change makes sense, however, because it makes it much harder to accidentally call one of the static macros twice, so this looks good to me.
Yes. I think this component was originally created when components were new and not as settled. This update makes it consistent with the others. |
b495b28
095de2b
to
b495b28
Compare
b495b28
to
c335403
Compare
bors r+ |
Pull Request Overview
This pull request updates the ambient light component to use new static format.
Testing Strategy
travis
TODO or Help Wanted
n/a
Documentation Updated
/docs
, or no updates are required.Formatting
make prepush
.