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@0:0c7c74d022ff, 2018-06-11 (annotated)
- Committer:
- Lorutal
- Date:
- Mon Jun 11 17:16:09 2018 +0000
- Revision:
- 0:0c7c74d022ff
test
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Lorutal | 0:0c7c74d022ff | 1 | #include "mbed.h" |
| Lorutal | 0:0c7c74d022ff | 2 | #include "AX12.h" |
| Lorutal | 0:0c7c74d022ff | 3 | |
| Lorutal | 0:0c7c74d022ff | 4 | int main() { |
| Lorutal | 0:0c7c74d022ff | 5 | |
| Lorutal | 0:0c7c74d022ff | 6 | AX12 myax12 (PC_6, PC_7, 1); // tx rx, id |
| Lorutal | 0:0c7c74d022ff | 7 | |
| Lorutal | 0:0c7c74d022ff | 8 | while (1) { |
| Lorutal | 0:0c7c74d022ff | 9 | myax12.SetGoal(0); // go to 0 degrees |
| Lorutal | 0:0c7c74d022ff | 10 | wait (2.0); |
| Lorutal | 0:0c7c74d022ff | 11 | myax12.SetGoal(300); // go to 300 degrees |
| Lorutal | 0:0c7c74d022ff | 12 | wait (2.0); |
| Lorutal | 0:0c7c74d022ff | 13 | } |
| Lorutal | 0:0c7c74d022ff | 14 | } |