Kosuke Yagi
/
mbed_blinky_delay
Lチカする間隔がだんだん大きくなっていきます
Revision 1:5b034f71ec5f, committed 2015-11-14
- Comitter:
- patchgi
- Date:
- Sat Nov 14 05:21:10 2015 +0000
- Parent:
- 0:300909268cb9
- Commit message:
- ?????
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r 300909268cb9 -r 5b034f71ec5f main.cpp --- a/main.cpp Sat Nov 14 05:15:21 2015 +0000 +++ b/main.cpp Sat Nov 14 05:21:10 2015 +0000 @@ -3,12 +3,11 @@ DigitalOut myled(dp18); int main() { - float delay=2; + float delay=0.2; while(1) { myled = 1; wait(delay); myled = 0; wait(delay); - if(delay>0.1){ - } + delay+=0.1 }