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 "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 
21 
23 
24  PCF8574_write_data(0x00, 0xF0);
25 
26  while(1);
27 }