LTlib LaurTec Library
4.0.0 Beta
Open Source C Library for Microchip Microcontrollers based on XC8 Compiler
Main Page
Data Structures
Files
File List
Globals
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
19
IO_set_all_ports_as_inputs
();
20
21
MCP2300x_initialize
(200);
22
23
MCP2300x_set_port_direction
(device_address,0x00);
24
25
MCP2300x_set_port_value
(device_address, data);
26
27
while
(1);
28
}
LTlib_v_4.0.0
ex
PIC18
MCP23008
01 - MCP23008_Output_8_LED.X
main.c
Generated on Sun Feb 21 2016 13:52:58 for LTlib LaurTec Library by
1.8.3.1