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: asd.cpp
- Revision:
- 1:9867060b8cea
diff -r 344c80db9f20 -r 9867060b8cea asd.cpp
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/asd.cpp Mon Aug 13 05:37:28 2018 +0000
@@ -0,0 +1,17 @@
+#include "mbed.h"
+#include "Servo.h"
+
+ Servo myservo(p21);
+
+ int main() {
+ while(1) {
+ for(int i=0; i<100; i++) {
+ myservo = i/100.0;
+ wait(0.01);
+ }
+ for(int i=100; i>0; i--) {
+ myservo = i/100.0;
+ wait(0.01);
+ }
+ }
+ }
\ No newline at end of file