Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: WS2812 PixelArray Adafruit_GFX
PCF8574 Class Reference
Interface to the popular PCF8574 I2C 8 Bit IO expander. More...
#include <PCF8574.h>
Public Member Functions | |
| PCF8574 (PinName sda, PinName scl, int address) | |
| Create an instance of the PCF8574 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 popular PCF8574 I2C 8 Bit IO expander.
Definition at line 7 of file PCF8574.h.
Constructor & Destructor Documentation
| PCF8574 | ( | PinName | sda, |
| PinName | scl, | ||
| int | address | ||
| ) |
Create an instance of the PCF8574 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 PCF8574
Definition at line 4 of file PCF8574.cpp.
Member Function Documentation
| int read | ( | ) |
| void write | ( | int | data ) |
Write to the IO pins.
- Parameters:
-
data The 8 bits to write to the IO port
Definition at line 16 of file PCF8574.cpp.
Generated on Sun Jul 17 2022 05:22:18 by
1.7.2