Aufgabe1

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
matthiasdorudi
Date:
Mon Jan 11 16:00:32 2016 +0000
Commit message:
DORUDI_H?LZL_PORT_AUFGABE

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 8ff5f1eb7af6 main.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/main.cpp	Mon Jan 11 16:00:32 2016 +0000
@@ -0,0 +1,18 @@
+#include "mbed.h"
+
+#define RGB_MASK 0x00008000
+#define RGB1_MASK 0x00200200
+
+PortOut ledport(Port1, RGB_MASK);
+PortOut ledport1(Port0, RGB1_MASK);
+
+int main(){
+while(1){
+    ledport = RGB_MASK;
+    ledport1 = RGB1_MASK;
+    wait(1);
+    ledport = 0;
+    ledport1 = 0;
+    wait(1);
+    }    
+}
\ No newline at end of file
diff -r 000000000000 -r 8ff5f1eb7af6 mbed.bld
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Mon Jan 11 16:00:32 2016 +0000
@@ -0,0 +1,1 @@
+http://mbed.org/users/mbed_official/code/mbed/builds/4336505e4b1c
\ No newline at end of file