Equipo 13
/
Laboratorio1
Laboratorio 1
Revision 0:e178359c5ba4, committed 2014-01-30
- Comitter:
- Equipo13
- Date:
- Thu Jan 30 10:57:30 2014 +0000
- Commit message:
- Laboratorio1;
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 Thu Jan 30 10:57:30 2014 +0000 @@ -0,0 +1,22 @@ +#include "mbed.h" + +DigitalOut Ans1(PTA1); +DigitalOut Ans2(PTA2); +DigitalOut Ans3(PTD4); +DigitalOut Ans4(PTA12); +DigitalOut Ans5(PTA4); +DigitalOut Ans6(PTA5); +DigitalIn A(PTD1); +DigitalIn B(PTE0); +DigitalIn C(PTE1); + +int main() { + while(1) { + Ans1 = A|B&C|!C; + Ans2= A&!A|B|C; + Ans3= (!B|C)&A; + Ans4= (A|B)&!C|(A|C)&!B|(B|C)&!A; + Ans5= A|!A|B&!C; + Ans6= A&B&C|!A&!B&!C; + } +}
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Thu Jan 30 10:57:30 2014 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/a9913a65894f \ No newline at end of file