projet ghostbuzzter
Dependencies: mbed Random HMC5883L Buzzer
Diff: main_test_boussole.cpp
- Revision:
- 2:780472a0cfaf
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main_test_boussole.cpp Sun Dec 22 11:34:06 2019 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" +#include "HMC5883L.h" +#include "Gestion.h" + +int16_t tabOutput[3]; + +int main() +{ + while(1) + { + compass.getXYZ(tabOutput); + printf("x : %d | z : %d | y : %d\r\n", tabOutput[0], tabOutput[1], tabOutput[2]); + wait(0.5); + } +} +