Jap

Dependencies:   DigitDisplay Led-libary PCF8563 mbed

Files at this revision

API Documentation at this revision

Comitter:
04M04
Date:
Fri May 20 13:19:40 2016 +0000
Parent:
0:a0deee96163f
Commit message:
Jap...es geht!!!! ;-)

Changed in this revision

Debouncer.lib Show diff for this revision Revisions of this file
main.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Debouncer.lib	Fri Apr 22 06:31:54 2016 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,1 +0,0 @@
-http://developer.mbed.org/users/huliyang/code/Debouncer/#7f2f00805d41
--- a/main.cpp	Fri Apr 22 06:31:54 2016 +0000
+++ b/main.cpp	Fri May 20 13:19:40 2016 +0000
@@ -71,13 +71,15 @@
     InternTaster3.rise(&Minus);
     InternTaster4.rise(&StartStop);
 
-    prozent = 100;
+    prozent = 10;
+    color=RGB;
     StripeOut();
+    prozent = 0;
     while(1) {
-        UhrOut();
-        color = hRGB;
+        color = rgb;
         StripeOut();
-        wait(1);
+        wait(0.2);
+        prozent++;
     }
 }
 
@@ -85,7 +87,7 @@
 {
     __disable_irq();            //Interrupt deaktivieren
 
-    for(int r=0; r<=10; r++)
+    for(int r=1; r<=prozent; r++)
         RGBStripe.WriteLed(color);  //Farbe rausschreiben
 
     __enable_irq();             //Interrupt reaktivieren
@@ -125,11 +127,9 @@
 void Set()
 {
     __disable_irq();
-    
-    
-    
+    Led1=!Led1;
+    wait(0.5);
     __enable_irq();
-
 }
 void Plus()
 {