LTlib LaurTec Library  4.0.0 Beta
Open Source C Library for Microchip Microcontrollers based on XC8 Compiler
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
main.c
Go to the documentation of this file.
1 #include <xc.h>
2 
3 #include "LTlib.h"
4 
5 #include "module_IO.h"
6 #include "module_IO.c"
7 
8 #include "delay.h"
9 #include "delay.c"
10 
11 
12 int main(void) {
13 
15 
17 
18  delay_set_quartz (20);
19 
20  //The LEDs on PORTD will blink at 1Hz
21  while (1) {
22 
23  IO_write_port(IO_PORTD, 0xFF);
24  delay_s (1);
25  IO_write_port(IO_PORTD, 0x00);
26  delay_s (1);
27  }
28 
29 }