59,14 → 59,13 |
while(input(BUTTON1)) // testuje dokud nekdo nezmackne tlacitlo |
{ |
lcd_gotoxy(5,2); |
Output_toggle(PIN_A0); |
delay_ms(100); |
printf(lcd_putc,"%x",input_b()); |
printf(lcd_putc,"%x ",input_b()); |
} |
} |
void send_measuring() |
{ |
printf(usb_cdc_putc, "\n\r %5u %5u %5u %5u %5u", run, section[0], section[1], section[2], section[3]); |
printf(usb_cdc_putc, "\n\r %5lu %5lu %5lu %5lu %5lu", run, section[0], section[1], section[2], section[3]); |
} //*0.000010667 |
|
void main() |
106,6 → 105,11 |
beep(10); |
|
run=0; |
section[0] = 0; |
section[1] = 0; |
section[2] = 0; |
section[3] = 0; |
|
while (TRUE) |
{ |
run++; |