亮 菅野
/
hmc_test
aaa
Fork of hmc_test by
main.cpp@0:f75bb42438db, 2017-10-21 (annotated)
- Committer:
- njamena
- Date:
- Sat Oct 21 08:27:50 2017 +0000
- Revision:
- 0:f75bb42438db
??;
Who changed what in which revision?
User | Revision | Line number | New 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 | } |