
12C LCD DTH 22
Revision 0:6ebd772b99bd, committed 2015-04-28
- Comitter:
- narongdet
- Date:
- Tue Apr 28 06:29:16 2015 +0000
- Commit message:
- LCD;
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 6ebd772b99bd main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Tue Apr 28 06:29:16 2015 +0000 @@ -0,0 +1,13 @@ +#include "mbed.h" + +DigitalOut myled(LED1); +DigitalIn sw1(D10); +int main() { + while(1){ + if(sw1==1){ + myled=1; + }else{ + myled=0; + } +} +} \ No newline at end of file
diff -r 000000000000 -r 6ebd772b99bd mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Tue Apr 28 06:29:16 2015 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4fc01daae5a5 \ No newline at end of file