Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: BSP_B-L475E-IOT01
Diff: main.cpp
- Revision:
- 7:cccef81dc691
- Parent:
- 6:ff641476ffe3
- Child:
- 10:0964ad447861
diff -r ff641476ffe3 -r cccef81dc691 main.cpp
--- a/main.cpp Fri Apr 14 16:25:51 2017 +0200
+++ b/main.cpp Fri Apr 14 16:30:30 2017 +0200
@@ -56,16 +56,19 @@
printf("\nMAGNETO_X = %d\n", pDataXYZ[0]);
printf("MAGNETO_Y = %d\n", pDataXYZ[1]);
printf("MAGNETO_Z = %d\n", pDataXYZ[2]);
+ led1 = !led1;
wait(2);
BSP_GYRO_GetXYZ(pGyroDataXYZ);
printf("\nGYRO_X = %.2f\n", pGyroDataXYZ[0]);
printf("GYRO_Y = %.2f\n", pGyroDataXYZ[1]);
printf("GYRO_Z = %.2f\n", pGyroDataXYZ[2]);
+ led1 = !led1;
wait(2);
BSP_ACCELERO_AccGetXYZ(pDataXYZ);
printf("\nACCELERO_X = %d\n", pDataXYZ[0]);
printf("ACCELERO_Y = %d\n", pDataXYZ[1]);
printf("ACCELERO_Z = %d\n", pDataXYZ[2]);
+ led1 = !led1;
wait(2);
}
#else