last version

Dependencies:   mbed

https://os.mbed.com/teams/ABELI2019/code/Robin-Handy/

Files at this revision

API Documentation at this revision

Comitter:
rob117
Date:
Fri Dec 06 14:49:43 2019 +0000
Commit message:
dreileds

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 Dec 06 14:49:43 2019 +0000
@@ -0,0 +1,35 @@
+#include "mbed.h"
+
+DigitalOut led1(LED1);
+DigitalOut led2(LED2);
+DigitalOut led3(LED3);
+
+
+int main() {
+    while (1) {
+        
+    led1 = !led1;
+    wait_ms(20);    //100 Hz   
+        
+    if (led1==0){    
+    
+    led2 = !led2;
+    wait_ms(10);    //50 Hz  
+    
+
+     
+        
+    } 
+    
+    if((led1 == 1) && (led2 == 1))  //Wenn led1 und led2 leuchtet soll led3 leuchten
+    {
+        led3= !led3;
+    }
+        
+        
+    
+}
+    
+    
+   
+}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mbed.bld	Fri Dec 06 14:49:43 2019 +0000
@@ -0,0 +1,1 @@
+https://os.mbed.com/users/mbed_official/code/mbed/builds/65be27845400
\ No newline at end of file