avnish aggarwal
/
app-board-AnalogIn_HelloWorld_Mbed
ok
Revision 0:ea5527eaa968, committed 2013-02-12
- Comitter:
- mbed_official
- Date:
- Tue Feb 12 15:21:21 2013 +0000
- Commit message:
- AnalogIn Hello World
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 Tue Feb 12 15:21:21 2013 +0000 @@ -0,0 +1,14 @@ +#include "mbed.h" + +AnalogIn ain(p19); +DigitalOut led(LED1); + +int main() { + while (1){ + if(ain > 0.3) { + led = 1; + } else { + led = 0; + } + } +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Feb 12 15:21:21 2013 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/0954ebd79f59 \ No newline at end of file