デジタル出力

Dependencies:   mbed

Fork of HelloWorld by Simon Ford

LED2を1秒毎に点灯

https://mbed.org/users/okini3939/notebook/DigitalOut_jp/

main.cpp

Committer:
hasimo
Date:
2014-07-23
Revision:
2:76e965f3f8f3
Parent:
0:fb6bbc10ffa0

File content as of revision 2:76e965f3f8f3:

#include "mbed.h"

DigitalOut myled(LED2);

int main() {
    while(1) {
        myled = 1;
        wait(1.0);
        myled = 0;
        wait(1.0);
    }
}