projet ghostbuzzter

Dependencies:   mbed Random HMC5883L Buzzer

main_test_boussole.cpp

Committer:
briceetpapaul
Date:
2019-12-22
Revision:
2:780472a0cfaf

File content as of revision 2:780472a0cfaf:

#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);
    }
}