UncleRus / esp-idf-lib

Component library for ESP32-xx and ESP8266
https://esp-idf-lib.readthedocs.io/en/latest/
1.41k stars 437 forks source link

Request a driver for 8channel i2c expander PCA9557 #237

Closed yourEOF closed 3 years ago

yourEOF commented 3 years ago

Device description

The PCA9557 is a silicon CMOS circuit which provides parallel input/output expansion for SMBus and I2C-bus applications. The PCA9557 consists of an 8-bit input port register, 8-bit output port register, and an I2C-bus/SMBus interface. It has low current consumption and a high-impedance open-drain output pin, IO0.

Device information

The product information and the data sheet can be found at: https://datasheet.lcsc.com/lcsc/1810010521_NXP-Semicon-PCA9557PW,118_C141380.pdf

Purchasing the product

The URLs where you can buy the device are: https://lcsc.com/product-detail/Interface-I-O-Expanders_NXP-Semicon-PCA9557PW-118_C141380.html

Similar drivers As there is a driver for the 16channel expander PA95x5 would it be possible for you to make one for the 8bit PCA9557?

UncleRus commented 3 years ago

Hi!

Please see this PR: #238

yourEOF commented 3 years ago

Only tested input so far with your example. Works like a charm! Thanks, never thought you would be so quick! Best regards