LTlib LaurTec Library
4.0.3
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 "
PCF8574.h
"
12
#include "
PCF8574.c
"
13
14
// Note
15
// The LEDs must be connected with the anode to Vcc via a resistor 560-1000 Ohm.
16
// A 0 to the PCF8574 turns on the LED.
17
18
int
main
(
void
) {
19
20
IO_set_all_ports_as_inputs
();
21
22
PCF8574_initialize
(50);
23
24
PCF8574_write_data
(0x00, 0xF0);
25
26
while
(1);
27
}
LTlib_v_4.0.3
ex
PIC18
PCF8574
01 - PCF8574_8_LEDs.X
main.c
Generated on Wed Aug 3 2016 19:57:31 for LTlib LaurTec Library by
1.8.3.1