60,8 → 60,11 |
output_low(BEEP); |
|
lcd_init(); |
|
lcd_putc("\fHVPS01A 2013 MLAB\n"); |
|
lcd_gotoxy(1,1); |
lcd_putc("HVPS01A"); |
lcd_gotoxy(1,2); |
lcd_putc(" MLAB.cz"); |
Delay_ms(1000); |
|
lcd_putc("\f"); |
87,11 → 90,10 |
set_pwm2_duty(1023-plneni); |
|
lcd_gotoxy(1,1); |
printf(lcd_putc,"Actual: %lu V ",napeti); |
printf(lcd_putc,"%lu",napeti); |
lcd_gotoxy(1,2); |
printf(lcd_putc,"Set: %lu V ",setpoint); |
printf(lcd_putc,"Set:%lu"setpoint); |
|
|
if(button_press==false ) // tlacitka se ctou znovu pouze pokud v redchozim cyklu nebyla zmacknuta. |
{ |
if(!input(S1)) |
101,7 → 103,7 |
{ |
button_press=true; |
sound_beep(100,700); |
if(setpoint < 0xfa )setpoint+=5; |
if(setpoint < (1023-5) )setpoint+=5; |
} |
} |
|
123,7 → 125,7 |
{ |
button_press=true; |
sound_beep(100,500); |
if(setpoint < 0xff )setpoint++; |
if(setpoint < 1023 )setpoint++; |
} |
} |
|