Junichi Katsu
/
TickerTest
mbed電子工作レシピ リスト4.1のプログラム
Revision 0:ff2497eea45b, committed 2015-12-23
- Comitter:
- mbed_Cookbook_SE
- Date:
- Wed Dec 23 15:33:14 2015 +0000
- Commit message:
- ??
Changed in this revision
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
mbed.bld | Show annotated file Show diff for this revision Revisions of this file |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Dec 23 15:33:14 2015 +0000 @@ -0,0 +1,17 @@ +#include "mbed.h" + +Ticker flipper; +DigitalOut myled(LED1); + +void flip() { + + myled = !myled; + +} + +int main() { + flipper.attach(&flip, 0.2); + + while(1) { + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Wed Dec 23 15:33:14 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4336505e4b1c \ No newline at end of file