Jap
Dependencies: DigitDisplay Led-libary PCF8563 mbed
Revision 1:0a2fe6db4925, committed 2016-05-20
- 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 |
diff -r a0deee96163f -r 0a2fe6db4925 Debouncer.lib --- 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
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() {