tim003 tim003
/
LV9_Grupa3_Tim003_Zad1
Adnan Kicin Repuh Sahin
main.cpp
- Committer:
- tim003
- Date:
- 2014-05-12
- Revision:
- 0:150fd6d812b2
File content as of revision 0:150fd6d812b2:
#include "mbed.h" #include "MMA8451Q.h" #define MMA8451_I2C_ADDRESS (0x1d<<1) MMA8451Q acc(PTE25, PTE24, MMA8451_I2C_ADDRESS); Serial pc(USBTX, USBRX); int main() { while(1) { pc.printf("\nX-osa: %f Y-osa: %f Z-osa: %f", acc.getAccX(), acc.getAccY(), acc.getAccZ()); wait(1); } }