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_C7      // rizeni registru LCD displeje <lcd.c>
5
#define LCD_E           PIN_B7      // enable LCD displeje <lcd.c>
6
#define LCD_D0          PIN_B3      // data LCD  <lcd.c>
7
#define LCD_D1          PIN_B2
8
#define LCD_D2          PIN_B1
9
#define LCD_D3          PIN_B0
10
 
11
#include "LCD.C"
12
 
13
void main()
14
{
15
 
16
   setup_adc_ports(NO_ANALOGS);
17
   setup_adc(ADC_OFF);
18
   setup_psp(PSP_DISABLED);
19
   setup_spi(FALSE);
20
   setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
21
   setup_timer_1(T1_DISABLED);
22
   setup_timer_2(T2_DISABLED,0,1);
23
 
24
   lcd_init();
25
 
26
  while(true);
27
  {
28
    Delay_ms(100);
29
 
30
    LCD_gotoxy(1,1);
31
    printf(lcd_putc,"Ahoj, Display funguje");
32
  }
33
 
34
}