![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
cette fois faites import plutot que modifier direct bande de gredins
Dependencies: GYRO_DISCO_L476VG mbed BSP_DISCO_L476VG COMPASS_DISCO_L476VG
main.cpp
- Committer:
- Leonnn
- Date:
- 2020-06-12
- Revision:
- 6:df81f0a821d8
- Parent:
- 5:a50ff92004e0
- Child:
- 7:4d02d2486949
File content as of revision 6:df81f0a821d8:
#include "mbed.h" #include "GYRO_DISCO_L476VG.h" GYRO_DISCO_L476VG gyro; Serial pc(SERIAL_TX, SERIAL_RX); int main() { pc.baud(115200); float GyroBuffer[3]; printf("Gyroscope started\n"); while(1) { // Read Gyroscope values gyro.GetXYZ(GyroBuffer); // Display values pc.printf("$%f;", GyroBuffer[1]); wait(0.2); } }