Developing Library for the MAX7314 I2C 16-bit I/O Expander w/ PWM
Dependencies: mbed PCA9538_Expander
PCF8575 Class Reference
Interface to the PCF8575 I2C 16 Bit IO expander. More...
#include <PCF8575.h>
Public Member Functions | |
PCF8575 (PinName sda, PinName scl, int address) | |
Create an instance of the PCF8575 connected to specfied I2C pins, with the specified address. | |
int | read () |
Read the IO pin level. | |
void | write (int data) |
Write to the IO pins. |
Detailed Description
Interface to the PCF8575 I2C 16 Bit IO expander.
Definition at line 29 of file PCF8575.h.
Constructor & Destructor Documentation
PCF8575 | ( | PinName | sda, |
PinName | scl, | ||
int | address | ||
) |
Create an instance of the PCF8575 connected to specfied I2C pins, with the specified address.
- Parameters:
-
sda The I2C data pin scl The I2C clock pin address The I2C address for this PCF8575
Definition at line 26 of file PCF8575.cpp.
Member Function Documentation
int read | ( | ) |
void write | ( | int | data ) |
Write to the IO pins.
- Parameters:
-
data The 16 bits to write to the IO port
Definition at line 37 of file PCF8575.cpp.
Generated on Wed Jul 20 2022 04:19:35 by 1.7.2