Subversion Repositories svnkaklik

Rev

Rev 410 | Details | Compare with Previous | Last modification | View Log

Rev Author Line No. Line
6 kaklik 1
#include "D:\@Kaklik\programy\PIC_C\cidlo\piezo.h"
2
 
3
 
4
void main()
5
{
6
   port_b_pullups(false);
7
   setup_counters(RTCC_INTERNAL,WDT_18MS);
8
 
9
   while (true)
10
   {
11
      if (input(PIN_B0))
12
      {
13
         output_high(PIN_A3);
14
         delay_ms(500);
15
      }
16
      else output_low(PIN_A3);
17
   }
18
}