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.
Fork of moter_titech by
Revision 10:808032cf71b0, committed 2014-01-24
- Comitter:
- senna0116
- Date:
- Fri Jan 24 02:34:20 2014 +0000
- Parent:
- 9:56d571c1cb9f
- Child:
- 11:5cd36eedffb3
- Commit message:
- moter_titech_ns;
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Fri Jan 24 02:24:50 2014 +0000
+++ b/main.cpp Fri Jan 24 02:34:20 2014 +0000
@@ -66,7 +66,7 @@
pc.printf("dou\r\n");
break;
- case'l':
+ case'q':
dou2=1;
c=0;
pc.printf("dou_2gouki\r\n");
@@ -140,15 +140,15 @@
Dou2.period(0.00001);
Dou2.pulsewidth(0.000005f);
int j=1;
- int l=1;
+ int q=1;
while(true){
if(dou2==1){
- switch(l){
+ switch(q){
case 1:
Dou2.pulsewidth(0.000004f);
j=j++;
wait(0.02);
- if(j>50)l=2;
+ if(j>50)q=2;
break;
case 2:
@@ -156,7 +156,7 @@
j=j--;
wait(0.02);
if(j<2){
- l=1;
+ q=1;
dou2=0;
}
break;
