Log measurements on SD card added on DISCO-L476VG board acceleration, omega, compass & 5 Analog values
Dependencies: BSP_DISCO_L476VG COMPASS_DISCO_L476VG ConfigFile GYRO_DISCO_L476VG SDFileSystem mbed
main.cpp
- Committer:
- flowh
- Date:
- 2016-02-12
- Revision:
- 0:0861bf46efe4
- Child:
- 1:e1f3b4b8b99b
File content as of revision 0:0861bf46efe4:
#include "mbed.h" #include "DefinitionIO.h" int main() { Init(); while(1) { Mesures.Update(); CheckEnreg(); // Read acceleremoter and magnetometer values // Display values /* printf("Acc X = %d\n", lAcc[0]); printf("Acc Y = %d\n", lAcc[1]); printf("Acc Z = %d\n", lAcc[2]); printf("Mag X = %d\n", lMag[0]); printf("Mag Y = %d\n", lMag[1]); printf("Mag Z = %d\n", lMag[2]); printf("\n\r"); */ wait(1); } }