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 4:e31648a823e2, committed 2018-01-15
- Comitter:
- johnnyken
- Date:
- Mon Jan 15 11:21:10 2018 +0000
- Parent:
- 3:d4caf19048aa
- Commit message:
- ????????????
Changed in this revision
| main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/main.cpp Mon Jan 15 06:37:42 2018 +0000
+++ b/main.cpp Mon Jan 15 11:21:10 2018 +0000
@@ -31,7 +31,7 @@
//led2=!led2;
enc=rollen.getPulses();
pc.printf("%d\n",enc);
- if(enc < 0){
+ if(enc > 0){
led2 = 1;
valve1 = 1;
}
@@ -39,7 +39,7 @@
led2 = 0;
valve1 = 0;
}
- if(enc<enc_old){
+ if(enc>enc_old){
led1 = 1;
led3 = 0;
}