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.
Fork of mbed_blinky by
Revision 9:ada1a8a81354, committed 2017-09-25
- Comitter:
- RichardAmes
- Date:
- Mon Sep 25 22:50:24 2017 +0000
- Parent:
- 8:840b3b80cfa2
- Commit message:
- initial check in
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon May 22 21:17:29 2017 +0000
+++ b/main.cpp Mon Sep 25 22:50:24 2017 +0000
@@ -59,19 +59,18 @@
}
int main()
-{
+{
+ int i;
+
drive_init();
- move(0, 0, 500);
- move(40, 40, 500);
- move(0, 100, 300);
- move(40, 40, 500);
- move(0, 100, 300);
- move(40, 40, 500);
- move(0, 100, 300);
- move(40, 40, 500);
- move(0, 100, 300);
-
+ for (i = 0; i < 4; i++)
+ {
+ move(0, 0, 500);
+ move(-50, 50, 1000);
+ move(0, 0, 500);
+ move(50, -50, 1000);
+ }
while(1)
{
move(0, 0, 500);
