b
Fork of MMA7660 by
Revision 5:fd9787a2959d, committed 2015-10-29
- Comitter:
- co657_kk351
- Date:
- Thu Oct 29 17:38:25 2015 +0000
- Parent:
- 4:36a163511e34
- Commit message:
- kk351_a3
Changed in this revision
MMA7660.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 36a163511e34 -r fd9787a2959d MMA7660.cpp --- a/MMA7660.cpp Tue May 13 18:14:34 2014 +0000 +++ b/MMA7660.cpp Thu Oct 29 17:38:25 2015 +0000 @@ -1,5 +1,6 @@ #include "MMA7660.h" + MMA7660::MMA7660(PinName sda, PinName scl, bool active) : _i2c(sda, scl) { setActive(active); @@ -172,7 +173,7 @@ bool active_old = active; if (!active) { setActive(true); - wait(0.012 + 1/samplerate); //Wait until new sample is ready + wait(0.012 + 1/samplerate); //Wait until new sample is ready } signed char temp; @@ -191,4 +192,5 @@ setActive(false); return temp / MMA7660_SENSITIVITY; -} \ No newline at end of file +} +