Digital Input simple example for WIZwiki-W7500 academy
Dependencies: mbed
Fork of DigitalIn_HelloWorld_WIZwiki-W7500 by
Diff: main.cpp
- Revision:
- 0:aaf5a9d465fd
- Child:
- 3:e2f865861a7a
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Wed Feb 13 16:09:04 2013 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" + +DigitalIn enable(p5); +DigitalOut led(LED1); + +int main() { + while(1) { + if(enable) { + led = !led; + } + wait(0.25); + } +} \ No newline at end of file