sei ka
/
test5
w
Revision 0:d12d1fa56e10, committed 2016-05-16
- Comitter:
- hx6730
- Date:
- Mon May 16 06:12:47 2016 +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 Mon May 16 06:12:47 2016 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" + +DigitalIn p(PTB2); +BusOut led1(PTE5,PTE4,PTE3,PTE2,PTB11,PTB10,PTB9,PTB8); +BusOut mo(PTA1,PTA2); + +int main() { + while(1) { + if(p == 0){ + led1 = 0x01; + mo = 0x01;} + else if(p == 1){ + led1 = 0x80; + mo = 0x02;} + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon May 16 06:12:47 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/7c328cabac7e \ No newline at end of file