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:
- 1:05900d7cb290
- Parent:
- 0:6f2ee7918e2c
- Child:
- 2:10ffe9ba97ee
--- a/main.cpp Tue Apr 08 13:10:43 2014 +0000
+++ b/main.cpp Wed Apr 09 10:42:43 2014 +0000
@@ -21,12 +21,12 @@
SW.mode(PullUp);
while(1) {
- if (VRx<1/3) prikazX=1;
- else if (VRx<2/3) prikazX=2;
+ if (VRx<1.0/3.0) prikazX=1;
+ else if (VRx<2.0/3.0) prikazX=2;
else prikazX=4;
- if (VRy<1/3) prikazY=1;
- else if (VRy<2/3) prikazY=2;
+ if (VRy<1.0/3.0) prikazY=1;
+ else if (VRy<2.0/3.0) prikazY=2;
else prikazY=4;
if (SW==1) prikazSW=1;