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@3:892567359899, 2019-03-21 (annotated)
- Committer:
- hisyamfs
- Date:
- Thu Mar 21 13:54:51 2019 +0000
- Revision:
- 3:892567359899
- Parent:
- 2:229242a63331
- Child:
- 5:c39f2e572384
ok woy
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| hisyamfs | 0:5cf249ca41f0 | 1 | #include "mbed.h" |
| hisyamfs | 3:892567359899 | 2 | #include "CMPS_KRAI.h" |
| hisyamfs | 0:5cf249ca41f0 | 3 | |
| hisyamfs | 3:892567359899 | 4 | CMPS_KRAI cmps12(PB_4, PA_8, 0xC0); |
| hisyamfs | 0:5cf249ca41f0 | 5 | Serial pc(USBTX, USBRX); |
| hisyamfs | 0:5cf249ca41f0 | 6 | |
| hisyamfs | 3:892567359899 | 7 | int main() { |
| hisyamfs | 3:892567359899 | 8 | while (1) { |
| hisyamfs | 3:892567359899 | 9 | int deg = cmps12.readBearing(); |
| hisyamfs | 3:892567359899 | 10 | pc.printf("%d\n", deg); |
| hisyamfs | 3:892567359899 | 11 | wait_ms(200); |
| hisyamfs | 3:892567359899 | 12 | pc.printf("\033[2J\033[H"); |
| hisyamfs | 0:5cf249ca41f0 | 13 | } |
| hisyamfs | 0:5cf249ca41f0 | 14 | } |