- This topic has 1 reply, 2 voices, and was last updated 2 years, 4 months ago by .
- You must be logged in to reply to this topic.
Home › Forums › The libraries hosted on the site › PCF8574 i2c digital I/O expander › Maybe my question is very silly
Tagged: PCF8574A
Hello, my question is that I only want to read some sensors connected to the pcf8574at pins, it is not clear to me what mode I should use for this purpose, I read everything as 1 byte or I should read them separately as
uint8_t val = pcf8574.digitalRead(P1);
uint8_t val = pcf8574.digitalRead(P2);
uint8_t val = pcf8574.digitalRead(P3);
….etc
Hi Cristian,
you can use read all or read single pin, but I discourage using a mixed-mode because I use a “debounce” and It can be not so simple to understand.
Bye Renzo
More
3D Printer 3D printer upgrade ABB Arduino Arduino IDE Arduino SAMD boards Aurora AWS CNC Cyclone PCB Factory Cyclone PCB Factory how to build It Display DynamoDB E32 E70 EByte esp01 esp32 esp8266 File System Firmware i2c Library LoRa MicroPython Milling PCB My PCB Networking PCB pinout Power saving Programming board Raspberry Pi REST API RF rp2040 SD Card Sensors Sleep and Wake UP SPI STM32 Tutorial Web Server Wemos D1 mini WiFi