Lチカする間隔がだんだん大きくなっていきます

Dependencies:   mbed

main.cpp

Committer:
patchgi
Date:
2015-11-14
Revision:
0:300909268cb9
Child:
1:5b034f71ec5f

File content as of revision 0:300909268cb9:

#include "mbed.h"

DigitalOut myled(dp18);

int main() {
    float delay=2;
    while(1) {
        myled = 1;
        wait(delay);
        myled = 0;
        wait(delay);
        if(delay>0.1){
    }
}