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.
Diff: main.cpp
- Revision:
- 5:e7e4f1967fb8
- Parent:
- 4:7584ff0426f1
- Child:
- 6:44d1079f076c
--- a/main.cpp Wed Feb 18 19:52:34 2015 +0000 +++ b/main.cpp Wed Feb 18 19:54:07 2015 +0000 @@ -19,7 +19,9 @@ TFC_BAT_LED0_OFF; wait(0.2); - TFC_SetServo(0, current_servo_position-.05); + current_servo_position = current_servo_position-.05; + TFC_SetServo(0, current_servo_position); + } @@ -35,7 +37,8 @@ TFC_BAT_LED1_OFF; wait(0.2); - TFC_SetServo(0, current_servo_position+.05); + current_servo_position = current_servo_position+.05; + TFC_SetServo(0, current_servo_position); } else