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:
- 0:8b7b3638fb39
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp Tue Mar 13 22:05:23 2018 +0000
@@ -0,0 +1,13 @@
+#include "mbed.h"
+PwmOut myservo1(PB_10);
+DigitalOut myled(LED1);
+int main() {
+ myservo1.period_ms(20);
+ int cw=1;
+ int dpulse=500;
+ myservo1.pulsewidth_us(dpulse);
+ while(1) {
+ myled = 1;
+ myservo1.pulsewidth_us(dpulse);
+ wait(1);}
+}
\ No newline at end of file