![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
マクドナルドのポテトが揚がった音を楽しもう
Diff: main.cpp
- Revision:
- 0:8b1df45a6d0d
diff -r 000000000000 -r 8b1df45a6d0d main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Dec 15 00:18:33 2015 +0000 @@ -0,0 +1,30 @@ +#include "mbed.h" + +DigitalOut myled(LED1); + +int main() { + while(1) { + for( int i = 0 ; i<200 ; i++ ) + { + myled = 1; + wait( 1.0 /784.0 /2.0 ); + myled = 0; + wait( 1.0 /784.0 /2.0 ); + } + for( int i = 0 ; i<180 ; i++ ) + { + myled = 1; + wait( 1.0 /698.5 /2.0 ); + myled = 0; + wait( 1.0 /698.5 /2.0 ); + } + for( int i = 0 ; i<200 ; i++ ) + { + myled = 1; + wait( 1.0 /784.0 /2.0 ); + myled = 0; + wait( 1.0 /784.0 /2.0 ); + } + wait(0.2); + } +}