Jap

Dependencies:   DigitDisplay Led-libary PCF8563 mbed

Revision:
1:0a2fe6db4925
Parent:
0:a0deee96163f
diff -r a0deee96163f -r 0a2fe6db4925 main.cpp
--- 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()
 {