Subversion Repositories svnkaklik

Rev

Rev 460 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 460 Rev 471
Line 24... Line 24...
24
      Delay_ms(50);           // pockej 50ms
24
      Delay_ms(50);           // pockej 50ms
25
      output_high(PIN_B2);    // nastav B0 na 1
25
      output_high(PIN_B2);    // nastav B0 na 1
26
 
26
 
27
      for(i=0;i<=100;i++)
27
      for(i=0;i<=100;i++)
28
      {
28
      {
-
 
29
     
29
        Output_high(PIN_A2);
30
        Output_high(PIN_A2);
30
        Delay_ms(1);
31
        Delay_ms(1);
31
        Output_low(PIN_A2);
32
        Output_low(PIN_A2);
32
        Delay_ms(1);
33
        Delay_ms(1);
33
      }
34
      }
34
      
35
 
35
      output_low(PIN_B0);     //nastav B0 na 0
36
      output_low(PIN_B0);     //nastav B0 na 0
36
      Delay_ms(50);           // pockej 50ms
37
      Delay_ms(50);           // pockej 50ms
37
      output_low(PIN_B1);     //nastav B0 na 0
38
      output_low(PIN_B1);     //nastav B0 na 0
38
      Delay_ms(50);           // pockej 50ms
39
      Delay_ms(50);           // pockej 50ms
39
      output_low(PIN_B2);     //nastav B0 na 0
40
      output_low(PIN_B2);     //nastav B0 na 0