Subversion Repositories svnkaklik

Rev

Blame | Last modification | View Log | Download

#include "E:\@Dokumenty\pic\test_lcd_873\main.h"

#DEFINE LCD_RS          PIN_B1      // rizeni registru LCD displeje
#DEFINE LCD_E           PIN_B2      // enable LCD displeje
#DEFINE LCD_DATA_LSB    PIN_B4      // pripojeni LSB bitu datoveho portu LCD displeje (celkem 4 bity vzestupne za sebou)
#INCLUDE "MYLCD.C"


void main() {

   setup_adc_ports(NO_ANALOGS);
   setup_adc(ADC_CLOCK_DIV_2);
   setup_spi(FALSE);
   setup_counters(RTCC_INTERNAL,RTCC_DIV_2);
   setup_timer_1(T1_DISABLED);
   setup_timer_2(T2_DISABLED,0,1);

   lcd_init();
   printf(lcd_putc,"\fStart 1 ...");

   while(true)
   {
      output_high(PIN_C1);
      output_low(PIN_C2);
      delay_ms(500);
      output_low(PIN_C1);
      output_high(PIN_C2);
      delay_ms(500);
   }



}