Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
main.cpp
00001 #include "mbed.h" 00002 #include "CMPS_KRAI.h" 00003 00004 CMPS_KRAI cmps12(PB_4, PA_8, 0xC0); 00005 Serial pc(USBTX, USBRX); 00006 00007 int main() { 00008 cmps12.eraseProfile(); 00009 while (1) { 00010 int deg = cmps12.readBearing(); 00011 int status = cmps12.state(SYSTEM_STATE); 00012 pc.printf("%d %d\n", deg, status); 00013 wait_ms(200); 00014 pc.printf("\033[2J\033[H"); 00015 } 00016 }
Generated on Fri Jul 15 2022 08:33:23 by
1.7.2