Rev Author Line No. Line
121 pavlicek 1 #include "main.h"
2  
3  
4  
5 #define LCD_RS PIN_B1 // rizeni registru LCD displeje
6 #define LCD_E PIN_B0 // enable LCD displeje
7 #define LCD_DATA_LSB PIN_C4 // pripojeni LSB bitu datoveho portu LCD displeje (celkem 4 bity vzestupne za sebou)
8  
9 #include "lcd.c"
10  
11 void main()
12 {
13  
14 setup_adc_ports(NO_ANALOGS);
15 setup_adc(ADC_OFF);
16 setup_psp(PSP_DISABLED);
17 setup_spi(FALSE);
18 setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
19 setup_timer_1(T1_DISABLED);
20 setup_timer_2(T2_DISABLED,0,1);
21  
22 lcd_init();
23  
24 while(true)
25 {
26 Delay_ms(100);
27  
28 // LCD_gotoxy(1,1);
29 printf(lcd_putc,"Ahoj\nDisplay funguje ");
30 }
31  
32 }