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.
Dependencies: CustomExplorerRobot mbed
main.cpp@1:444982b9e003, 2016-02-27 (annotated)
- Committer:
- Usuke
- Date:
- Sat Feb 27 09:29:02 2016 +0000
- Revision:
- 1:444982b9e003
- Parent:
- 0:b14e99f78c69
??
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Usuke | 0:b14e99f78c69 | 1 | #include "mbed.h" |
| Usuke | 0:b14e99f78c69 | 2 | #include "CustomExplorerRobot.h" |
| Usuke | 0:b14e99f78c69 | 3 | |
| Usuke | 0:b14e99f78c69 | 4 | CustomExplorerRobot cer; |
| Usuke | 0:b14e99f78c69 | 5 | |
| Usuke | 0:b14e99f78c69 | 6 | int main() { |
| Usuke | 0:b14e99f78c69 | 7 | |
| Usuke | 0:b14e99f78c69 | 8 | wait(0.5f); |
| Usuke | 0:b14e99f78c69 | 9 | cer.forward(0.5f); |
| Usuke | 0:b14e99f78c69 | 10 | wait(0.5f); |
| Usuke | 0:b14e99f78c69 | 11 | cer.left(0.5f); |
| Usuke | 0:b14e99f78c69 | 12 | wait(0.5f); |
| Usuke | 0:b14e99f78c69 | 13 | cer.backward(0.5f); |
| Usuke | 0:b14e99f78c69 | 14 | wait(0.5f); |
| Usuke | 0:b14e99f78c69 | 15 | cer.right(0.5f); |
| Usuke | 0:b14e99f78c69 | 16 | wait(0.5f); |
| Usuke | 0:b14e99f78c69 | 17 | cer.stop(); |
| Usuke | 0:b14e99f78c69 | 18 | |
| Usuke | 0:b14e99f78c69 | 19 | return 0; |
| Usuke | 0:b14e99f78c69 | 20 | } |
Custom Explorer Robot