![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
Compass Working
main.cpp
- Committer:
- pstephens18
- Date:
- 2016-01-13
- Revision:
- 0:1acd78600f46
- Child:
- 1:ef74b3428716
File content as of revision 0:1acd78600f46:
#include "Compass.h" #include "mbed.h" Serial pc(USBTX,USBRX); double direction; int main() { while(1){ direction = Compass(); pc.printf("%1.2f degrees \n\r" , direction); } }