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: BMX055
main.cpp
- Committer:
- yasunorihirakawa
- Date:
- 2019-12-10
- Revision:
- 1:630fac09c3bd
- Parent:
- 0:532ef32974cf
File content as of revision 1:630fac09c3bd:
#include "mbed.h"
#include "BMX055.h"
BMX055 bmx(D0,D1);
int main()
{
//bmx.mag_calibration();
bmx.acc_calibration();
/*
while(1)
{
bmx.Get_acc();
printf("ACC: %+9.4f, %+9.4f, %+9.4f\r\n", bmx.accel[0], bmx.accel[1], bmx.accel[2]);
bmx.Get_gyro();
printf("GYRO: %+9.4f, %+9.4f, %+9.4f\r\n",bmx.gyroscope[0]*125/2048,bmx.gyroscope[1]*125/2048,bmx.gyroscope[2]*125/2048);
bmx.Get_mag();
printf("MAG: %+9.4f, %+9.4f, %+9.4f\r\n",bmx.magnet[0],bmx.magnet[1],bmx.magnet[2]);
printf("\n");
wait(0.5);
}*/
}