#include "abcda.h"


void main()
{

   int i,j,n,cas;

   const int8 pis[2*5]={0b00000001,0b11110110,0b11110110,0b11110110,0b00000001,
                        0b00000001,0b11110110,0b11110110,0b11110110,0b00000001};
   int8 napis[2*8];
      
   setup_adc_ports(NO_ANALOGS);
   setup_adc(ADC_OFF);
   setup_psp(PSP_DISABLED);
   setup_spi(SPI_SS_DISABLED);
   setup_timer_0(RTCC_INTERNAL|RTCC_DIV_1);
   setup_timer_1(T1_DISABLED);
   setup_timer_2(T2_DISABLED,0,1);
   setup_comparator(NC_NC_NC_NC);
   setup_vref(FALSE);

   while(TRUE)
   {
      for(i=0;i<=2;i++)
      for(j=0;j<=100;j++)   
      {
         for(n=0;n<=8;n++)
         {
            for(cas=0;cas<5;cas++)
            {
            output_B(pis[napis[i-0x40]+cas]);
            delay_ms(1);
            }
            delay_ms(2);
         }
         delay_ms(142);
      }
   }   
}