PIC18 LaurTec Library
3.1.2
Open Source C Library for PIC18 Microcontrollers based on C18 - XC8 Compilers
|
Go to the source code of this file.
Functions | |
signed char | PCF8574_write_data (unsigned char control, unsigned char data) |
signed char | PCF8574_read_data (unsigned char control, unsigned char *data) |
signed char PCF8574_read_data | ( | unsigned char | control, |
unsigned char * | data | ||
) |
This function reads to the data Port of the I2C I/O expander.
control | Is the address of the PCF8574 (Internal Address + Pin address |
data | Address where the data is written into. |
xxx = A2 A1 A0 (External Address Pins)
signed char PCF8574_write_data | ( | unsigned char | control, |
unsigned char | data | ||
) |
This function writes to the data Port of the I2C I/O expander.
control | Is the address of the PCF8574 (Internal Address + Pin address) |
data | Byte to write [min: 0, max: 255] |
xxx = A2 A1 A0 (External Address Pins)