Práctica 2 Ejercicio 1
Dependencies: mbed
Revision 0:48598a2de8bb, committed 2017-11-03
- Comitter:
- anderibabe
- Date:
- Fri Nov 03 14:21:19 2017 +0000
- Commit message:
- Pr?ctica 2 Ejercicio 1
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 Fri Nov 03 14:21:19 2017 +0000 @@ -0,0 +1,16 @@ +#include "mbed.h" + +DigitalIn Sw1(PB_0); // Switch1 conectado al pin A3 +DigitalIn Sw2(PC_1); // Switch2 conectado al pin A4 +DigitalIn Sw3(PC_0); // Switch3 conectado al pin A5 +DigitalOut Led1(PB_3); // Led1 conectado al pin D3 +DigitalOut Led2(PB_5); // Led2 conectado al pin D4 +DigitalOut Led3(PB_4); // Led3 conectado al pin D5 + +int main() +{ + Led1 = !Sw1; + Led2 = !Sw2; + Led3 = !Sw3; + +} \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Fri Nov 03 14:21:19 2017 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/fb8e0ae1cceb \ No newline at end of file