NXP fan (in Japan)
/
mbed_blinky
mbed demo
Revision 0:15cadab4d700, committed 2014-04-26
- Comitter:
- nxpfan
- Date:
- Sat Apr 26 06:37:34 2014 +0000
- Commit message:
- test
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 |
diff -r 000000000000 -r 15cadab4d700 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Sat Apr 26 06:37:34 2014 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +AnalogIn ain(p20); +int main() +{ + while(1) { + if ( (float)ain > 0.5 ) + myled = 1; + else + myled = 0; + } +}
diff -r 000000000000 -r 15cadab4d700 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Sat Apr 26 06:37:34 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/6473597d706e \ No newline at end of file