tim003 tim003
/
LV1-PAI-Grupa2-Tim003-Zadatak2
Granulo Eldar Ljubuncic Orhan
Revision 1:1db0fc3a4657, committed 2014-03-03
- Comitter:
- tim003
- Date:
- Mon Mar 03 10:32:23 2014 +0000
- Parent:
- 0:1648f2f2da6f
- Commit message:
- LV1-PAI-Grupa2-Tim003
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 1648f2f2da6f -r 1db0fc3a4657 main.cpp --- a/main.cpp Mon Mar 03 10:23:37 2014 +0000 +++ b/main.cpp Mon Mar 03 10:32:23 2014 +0000 @@ -5,7 +5,7 @@ int main() { - float on = 1; + float on = 1.0; while(1) { @@ -15,7 +15,7 @@ myled = 0; wait(on); myled = 1; - wait(2-on); + wait(2.0-on); on+=0.03; } @@ -24,7 +24,7 @@ myled = 0; wait(on); myled = 1; - wait(2-on); + wait(2.0-on); on-=0.03; } @@ -33,7 +33,7 @@ myled = 0; wait(on); myled = 1; - wait(2-on); + wait(2.0-on); on+=0.03; }