I've been working on a project in which I'm using a PCF8574 IO expander to read some buttons. When i run the I2C scanner program on the arduino it finds the chip on 0X20, but when I try to use a library to red the buttons the library fails to find the chip and when i bypass the code that stops the program from continuing after failing to find the chip i get random data. And yes I checked the I2C address in the code.
here is the link to the chip I'm using
After some research I managed to write some code that made it work I'm still uploading the schematic if anyone needs it for some reason Schematic_halospa-hack_2024-02-27.pdf (139.3 KB)