LTlib LaurTec Library  4.0.1
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 "module_I2C.h"
9 #include "module_I2C.c"
10 
11 #include "MCP2300x.h"
12 #include "MCP2300x.c"
13 
14 int main(void) {
15 
16  unsigned char device_address = 0x00;
17  unsigned char data = 0x55;
18 
20 
22 
23  MCP2300x_set_port_direction(device_address,0x00);
24 
25  MCP2300x_set_port_value(device_address, data);
26 
27  while(1);
28 }