-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
pkg/arduino_adafruit_sensor: add Adafruit Unified Sensor Driver as package #17460
Conversation
e0433d3
to
8d32d6d
Compare
8d32d6d
to
e577981
Compare
e577981
to
fa7d4d9
Compare
@@ -0,0 +1,2 @@ | |||
CFLAGS += "-DARDUINO = 100" |
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.
What does this do?
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 just says the source code of the package that we have an Arduino version >= 1.0. This is usually set by the Arduino IDE.
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.
Mind adding a comment? Squashing out that f
and triggering ci?
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.
Looks good, one tiny questio above, also I see a trailing f in the commit message of fa7d4d9 that bothers my TOC
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions. |
A number of Adafruit sensor drivers use the class Adafruit_Sensor from the Adafruit Unified Sensor Driver. To support such drivers, the Adafruit Unified Sensor Driver is imported as package.
Ok, after almost a year I rebased the PR onto the latest master and fixed the comment in the commit messages. The only change is that I upgraded the package to the latest version of the package. |
fa7d4d9
to
6b9690c
Compare
bors merge |
Build succeeded: |
Thanks for reviewing and merging. |
Contribution description
This PR provides the Adafruit Unified Sensor Driver as package.
There are a number of Adafruit sensor drivers which all use a common base class
Adafruit_Sensor
from the Adafruit Unified Sensor Driver. To support such drivers, the Adafruit Unified Sensor Driver is provided as package.Adafruit sensor driver for ST LSM9DS0 will be provided as separat PR as package for demonstration and testing.
PR #12518 will be rebased for testing to have an Adafruit sensor driver for a sensor for which there is a native driver in RIOT.
Testing procedure
Use a board that provides the
arduino
feature and flashPR #12518 can be used as a more complex test for using the package.
Issues/PRs references
Prerequisite for PR #12518