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: function.h
- Revision:
- 2:95555e722c03
- Parent:
- 1:3d05c0de31ae
--- a/function.h Mon Aug 22 07:26:20 2016 +0000
+++ b/function.h Tue Aug 23 06:06:37 2016 +0000
@@ -74,4 +74,21 @@
mypwm.pulsewidth_us(i);
-}
\ No newline at end of file
+}
+
+
+void move(int right,int left){
+
+ PwmOut mypwm(PWM_OUT);
+ int i,degree;
+
+ mypwm.period_ms(20); //20ms
+
+ degree=180;
+
+ i=500+degree*1900/180;
+ mypwm.pulsewidth_us(i);
+
+
+}
+
\ No newline at end of file