aaa

Dependencies:   HMC5883L mbed

Fork of hmc_test by Clark John

Committer:
njamena
Date:
Sat Oct 21 08:27:50 2017 +0000
Revision:
0:f75bb42438db
??;

Who changed what in which revision?

UserRevisionLine numberNew contents of line
njamena 0:f75bb42438db 1 #include "mbed.h"
njamena 0:f75bb42438db 2 #include "HMC5883L.h"
njamena 0:f75bb42438db 3
njamena 0:f75bb42438db 4 Serial pc(USBTX,USBRX);
njamena 0:f75bb42438db 5 HMC5883L hmc(p28,p27);
njamena 0:f75bb42438db 6 int main() {
njamena 0:f75bb42438db 7 hmc.init();
njamena 0:f75bb42438db 8 //hmc.setConfigurationA()
njamena 0:f75bb42438db 9 hmc.getXYZ();
njamena 0:f75bb42438db 10 while(1)
njamena 0:f75bb42438db 11 {hmc.getXYZ();
njamena 0:f75bb42438db 12
njamena 0:f75bb42438db 13 }
njamena 0:f75bb42438db 14 }