Yifeng Yuan
/
ese519_lab1_7seg_letter
display letter on 7-segment
Diff: main.cpp
- Revision:
- 1:ad5433d86676
- Parent:
- 0:6ebe4f2554ad
- Child:
- 3:42fb220c3e1d
--- a/main.cpp Tue Feb 03 21:52:22 2015 +0000 +++ b/main.cpp Thu Feb 05 22:03:49 2015 +0000 @@ -24,13 +24,13 @@ //DigitalOut led2(LED2); DigitalOut dp2(p23); DigitalOut d(p24); -DigitalOut c(p25); -DigitalOut g(p26); -DigitalOut b(p27); -DigitalOut e(p28); -DigitalOut f(p29); -DigitalOut a(p30); -//PwmOut pwm1(p05); +DigitalOut c(p15); +DigitalOut g(p16); +DigitalOut b(p17); +DigitalOut e(p18); +DigitalOut f(p19); +DigitalOut a(p8); +PwmOut pwm1(p25); void released(); void depressed(); @@ -194,10 +194,10 @@ int symbol; - if (duration >= 30 && duration <= 200){ + if (duration >= 30 && duration <= 250){ symbol = 1; } - else if (duration > 200) { + else if (duration > 250) { symbol = 0; } else {