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.
Revision 0:3d38b95d74a0, committed 2016-02-05
- Comitter:
- EduRemo
- Date:
- Fri Feb 05 07:28:18 2016 +0000
- Child:
- 1:21aeba9a6128
- Commit message:
- FRCRCE
Changed in this revision
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Servo.lib Fri Feb 05 07:28:18 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/simon/code/Servo/#36b69a7ced07
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Fri Feb 05 07:28:18 2016 +0000
@@ -0,0 +1,20 @@
+// Hello World to sweep a servo through its full range
+
+#include "mbed.h"
+#include "Servo.h"
+
+Servo myservo(PTC1);
+
+
+int main() {
+ while(1) {
+ for(int i=0; i<=100; i++) {
+ myservo = i/100.0;
+ wait(0.1);
+ }
+ for(int i=99; i>=0; i--) {
+ myservo = i/100.0;
+ wait(0.1);
+ }
+ }
+}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Feb 05 07:28:18 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/9296ab0bfc11 \ No newline at end of file