34,16 → 34,11 |
|
void main() |
{ |
unsigned int16 setpoint; |
unsigned int16 setpoint=43; |
unsigned int16 napeti; |
unsigned int16 plneni=0; |
unsigned int1 button_press; // semafor pro cteni tlacitek |
|
lcd_init(); |
|
lcd_putc("\fHVPS01A 2013 MLAB\n"); |
Delay_ms(1000); |
|
setup_adc_ports(sAN0|VSS_VDD); |
setup_adc(ADC_CLOCK_DIV_32); |
setup_spi(SPI_SS_DISABLED); |
58,17 → 53,17 |
set_pwm1_duty(0); |
set_pwm2_duty(0); |
|
|
output_high(LED1); |
output_high(LED2); |
output_high(LED3); |
output_high(LED4); |
output_low(BEEP); |
|
// ext_int_edge( L_TO_H ); // Sets up EXT |
// enable_interrupts(INT_EXT); |
// enable_interrupts(GLOBAL); |
lcd_init(); |
|
lcd_putc("\fHVPS01A 2013 MLAB\n"); |
Delay_ms(1000); |
|
setpoint = 43; |
lcd_putc("\f"); |
|
while(true) |