Granulo Eldar Fahrudin Brbutović
Dependencies: MMA8451Q mbed sMotor
main.cpp
- Committer:
- tim003
- Date:
- 2014-05-12
- Revision:
- 0:19a04545e304
File content as of revision 0:19a04545e304:
#include "mbed.h" #include "MMA8451Q.h" #define ADDRESS (0x1d<<1) #define SDA PTE25 #define SCL PTE24 Serial pc(USBTX, USBRX); MMA8451Q acc(SDA, SCL, ADDRESS); int main() { while(1) { pc.printf("Po x osi: %lf, Po y osi: %lf, Po z osi: %lf \n", acc.getAccX(), acc.getAccY(), acc.getAccZ()); wait(1); } }