Junichi Katsu
/
TickerTest
mbed電子工作レシピ リスト4.1のプログラム
main.cpp
- Committer:
- mbed_Cookbook_SE
- Date:
- 2015-12-23
- Revision:
- 0:ff2497eea45b
File content as of revision 0:ff2497eea45b:
#include "mbed.h" Ticker flipper; DigitalOut myled(LED1); void flip() { myled = !myled; } int main() { flipper.attach(&flip, 0.2); while(1) { } }