Play around with the xtrinsic sensors package available through Element14. Includes the MAG3110,MMA8491Q and MPL3115.
Dependencies: MAG3110 MMA8491 MMA8491Q MPL3115 MPL3115A2 mbed
Revision 1:ecfba4d67833, committed 2017-09-14
- Comitter:
- seanburford
- Date:
- Thu Sep 14 06:59:30 2017 +0000
- Parent:
- 0:cb663f737aa9
- Child:
- 2:22c3ec6319ce
- Commit message:
- Change I2C pins;
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Sep 14 06:53:53 2017 +0000 +++ b/main.cpp Thu Sep 14 06:59:30 2017 +0000 @@ -10,7 +10,7 @@ int main() { - MMA8491Q acc(PTE1, PTE0, MMA8491_I2C_ADDRESS); + MMA8491Q acc(PTE0, PTE1, MMA8491_I2C_ADDRESS); while (true) { rled = 1.0 - abs(acc.getAccX());