Martina Le
/
m0_Port3
Funktioniert nicht
Revision 0:1227621ef234, committed 2016-01-11
- Comitter:
- martinale
- Date:
- Mon Jan 11 16:14:17 2016 +0000
- Commit message:
- Aufgabe3 (Funktioniert nicht)
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 1227621ef234 main.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/main.cpp Mon Jan 11 16:14:17 2016 +0000 @@ -0,0 +1,23 @@ +#include "mbed.h" +//#define P0_MASK 0x10120000 +//#define P1_MASK 0x00080000 + + +PortIn P0(Port0, 0x10120000); +PortIn p1(Port1, 0x000C0000); +DigitalOut led(LED3); + +int main() { + while(1) { + int taster = p1.read(); + if(taster) + { + led = 1; + } + else + { + led = 0; + } + + } +}
diff -r 000000000000 -r 1227621ef234 mbed.bld --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/mbed.bld Mon Jan 11 16:14:17 2016 +0000 @@ -0,0 +1,1 @@ +http://mbed.org/users/mbed_official/code/mbed/builds/4336505e4b1c \ No newline at end of file