aaa

Dependencies:   HMC5883L mbed

Fork of hmc_test by Clark John

main.cpp

Committer:
njamena
Date:
2017-10-21
Revision:
0:f75bb42438db

File content as of revision 0:f75bb42438db:

#include "mbed.h"
#include "HMC5883L.h"

Serial pc(USBTX,USBRX);
HMC5883L hmc(p28,p27);
int main() {
    hmc.init();
    //hmc.setConfigurationA()
    hmc.getXYZ();
    while(1)
    {hmc.getXYZ();
   
}
}