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\vyskomer_drak\main.h"
1
#include "D:\@Kaklik\programy\PIC_C\mereni\vyskomer_drak\main.h"
2
 
2
 
3
#DEFINE  SCLK     PIN_A2
3
#DEFINE  SCLK     PIN_A2
4
#DEFINE  DOUT
4
#DEFINE  DOUT
5
#DEFINE  DIN      PIN_A1
5
#DEFINE  DIN      PIN_A1
6
#include "MS5534A.c"
6
#include "MS5534A.c"
7
void main()
7
void main()
8
{
8
{
9
   output_high(pin_B2);
9
   output_high(pin_B2);
10
   while(true)
10
   while(true)
11
   {
11
   {
12
      while(!input(pin_B1))
12
      while(!input(pin_B1))
13
      {
13
      {
14
        output_high(pin_A3);
14
        output_high(pin_A3);
15
        Delay_ms(50);
15
        Delay_ms(50);
16
      }
16
      }
17
     output_low(pin_A3);
17
     output_low(pin_A3);
18
     Delay_ms(50);
18
     Delay_ms(50);
19
   }
19
   }
20
 
20
 
21
}
21
}