Rev 419 | Blame | Compare with Previous | Last modification | View Log | Download
#include "main.h"
#define LCD_RS PIN_C7 // rizeni registru LCD displeje <lcd.c>
#define LCD_E PIN_B7 // enable LCD displeje <lcd.c>
#define LCD_D0 PIN_B3 // data LCD <lcd.c>
#define LCD_D1 PIN_B2
#define LCD_D2 PIN_B1
#define LCD_D3 PIN_B0
#include "LCD.C"
void main()
{
setup_adc_ports(NO_ANALOGS);
setup_adc(ADC_OFF);
setup_psp(PSP_DISABLED);
setup_spi(FALSE);
setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
setup_timer_1(T1_DISABLED);
setup_timer_2(T2_DISABLED,0,1);
lcd_init();
while(true);
{
Delay_ms(100);
LCD_gotoxy(1,1);
printf(lcd_putc,"Ahoj, Display funguje");
}
}