-
-
Notifications
You must be signed in to change notification settings - Fork 944
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
Abstract acceleration sensor and add support for SC7A20 chip used in P8 #1132
base: main
Are you sure you want to change the base?
Conversation
22a0315
to
649f69b
Compare
78b1d61
to
586eef2
Compare
The simulator fails to build because the signature of the constructor Should I open a PR in InfiniSim? |
Eventually it will need to be fixed in InfiniSim, however it might be a bit early to do it now. The fifo changes that affect the PineTime should be one PR, so the other is focused only on the new driver and reviews will be easier. |
841eae1
to
e474afd
Compare
Ok, I moved the FIFO changes for the BMA421 to #1145 . |
ca60633
to
17ea323
Compare
The AccelerationSensor base class provides a unified interface to access both the BMA421 as well as the SC7A20 chip.
The FIFO buffer is used as well
The DRIVER_ACC configuration variable can be used to select the acceleration sensor driver to be used.
This PR has been broken out of #1050, and depends on / includes #1128 .
AccelerationSensor
base classDRIVER_ACC