a
Dependencies: Led-libary TextLCD mbed
Fork of Mbed-Mensch-8 by
Diff: main.cpp
- Revision:
- 24:e6620af29329
- Parent:
- 23:fd15b2f8cf08
- Child:
- 25:b31b49d277fd
--- a/main.cpp Fri Apr 08 08:43:54 2016 +0000 +++ b/main.cpp Fri Apr 08 09:02:50 2016 +0000 @@ -49,6 +49,9 @@ InterruptIn DD_C(p35);//P35 DigitalIn DD_D(p35); BusIn DD(p29, p30);//P29,P30 +Timeout Dprell; +void DprellRun(); +char DprellEn=1; //Dice Timer Random; @@ -310,6 +313,7 @@ mSelected[0] = 0; print_default(); mDiceEn = 5; + DprellEn=1; reset(); break; } @@ -1103,11 +1107,26 @@ { if (DD_D == DD_d) return; - else if (DD_D) - accept(); + else + { + if (DD_D&&DprellEn) + { + accept(); + } + if(DD_D==0) + { + DprellEn=0; + Dprell.attach_us(&DprellRun,500); + } + } DD_d = DD_D; } +void DprellRun() +{ + DprellEn=1; +} + char ausfuehren(uint32_t postion) { char out = 1;//0 ende der postion