Subversion Repositories svnkaklik

Rev

Rev 410 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log

Rev 410 Rev 659
1
#include "D:\@Kaklik\programy\PIC_C\mereni\zavora\main.h"
1
#include "D:\@Kaklik\programy\PIC_C\mereni\zavora\main.h"
2
 
2
 
3
 
3
 
4
void main()
4
void main()
5
{
5
{
6
   output_high(PIN_A3);
6
   output_high(PIN_A3);
7
   Delay_ms(250);
7
   Delay_ms(250);
8
   output_low(PIN_A3);
8
   output_low(PIN_A3);
9
   Delay_ms(250);
9
   Delay_ms(250);
10
   
10
   
11
   while(true)
11
   while(true)
12
   {
12
   {
13
      if(input(PIN_A4)) output_low(PIN_A3);
13
      if(input(PIN_A4)) output_low(PIN_A3);
14
      else output_high(PIN_A3);
14
      else output_high(PIN_A3);
15
   }
15
   }
16
}
16
}