Subversion Repositories svnkaklik

Rev

Rev 419 | Details | Compare with Previous | Last modification | View Log

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