Line 95... |
Line 95... |
95 |
section[0] = 0; |
95 |
section[0] = 0; |
96 |
section[1] = 0; |
96 |
section[1] = 0; |
97 |
section[2] = 0; |
97 |
section[2] = 0; |
98 |
section[3] = 0; |
98 |
section[3] = 0; |
99 |
|
99 |
|
100 |
printf(lcd_putc,"\f\nSTART ESC TEST"); |
100 |
printf(lcd_putc,"\f\nSTART TEST"); |
101 |
|
101 |
|
102 |
while(input(BUTTON1)) // ceka na zmacknuti startovaciho tlacitka |
102 |
while(input(BUTTON1)) // ceka na zmacknuti startovaciho tlacitka |
103 |
if(!input(BUTTON4)) |
103 |
if(!input(BUTTON4)) |
104 |
{ |
104 |
{ |
- |
|
105 |
printf(lcd_putc,"\f\n ESC"); |
105 |
while(input(BUTTON3)) |
106 |
while(input(BUTTON3)) |
106 |
{ |
107 |
{ |
107 |
lcd_gotoxy(1,1); |
108 |
lcd_gotoxy(1,1); |
108 |
printf(lcd_putc,"%1u %1u %1u %1u %1u %1u %1u %1u",input(START1),input(STOP1),input(START2), input(STOP2),input(START3),input(STOP3),input(START4),input(STOP4)); |
109 |
printf(lcd_putc,"%1u %1u %1u %1u %1u %1u %1u %1u",input(START1),input(STOP1),input(START2), input(STOP2),input(START3),input(STOP3),input(START4),input(STOP4)); |
109 |
delay_ms(100); |
110 |
delay_ms(100); |
110 |
} |
111 |
} |
- |
|
112 |
printf(lcd_putc,"\f\nSTART TEST"); |
111 |
} |
113 |
} |
112 |
printf(lcd_putc,"\f\n STOP"); // |
114 |
printf(lcd_putc,"\f\n STOP"); // |
113 |
|
115 |
|
114 |
// mereni casu ve ctyrech usecich |
116 |
// mereni casu ve ctyrech usecich |
115 |
while((!input(START1)) && (input(BUTTON2))); // cekame na tlacitko stop nebo na preruseni paprsku |
117 |
while((!input(START1)) && (input(BUTTON2))); // cekame na tlacitko stop nebo na preruseni paprsku |