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.
Revision 5:c39f2e572384, committed 2019-03-21
- Comitter:
- hisyamfs
- Date:
- Thu Mar 21 14:26:29 2019 +0000
- Parent:
- 4:81d46d99f0a3
- Commit message:
- nambahin erase profile di main
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Thu Mar 21 14:16:48 2019 +0000
+++ b/main.cpp Thu Mar 21 14:26:29 2019 +0000
@@ -5,9 +5,11 @@
Serial pc(USBTX, USBRX);
int main() {
+ cmps12.eraseProfile();
while (1) {
int deg = cmps12.readBearing();
- pc.printf("%d\n", deg);
+ int status = cmps12.state(SYSTEM_STATE);
+ pc.printf("%d %d\n", deg, status);
wait_ms(200);
pc.printf("\033[2J\033[H");
}