Hi, I have arduino uno and i2c pcf8547T, I want to connect 5 buttons to i2c with pin--gnd PULLUP method, I have no idea how can do that, can someone help me, I need to know what liabaries to use
Hello kristian311
Take a search engine of your choice and ask the WWW for some tutorials for the hardware selected.
Umm, is that an 8574, perchance?
Assuming you meant a PCF8574, then have you tried the PCF8574 library from here:
There are a couple of examples buttonRead and buttonRead8 that you may find useful.
But, first, I would connect up your PCF8574 and run an I2C scanner sketch just to make sure that the PCF8574 is detected and you know what address it is configured for as you will need that piece of information in order to correctly address the chip when running the examples or your own code.
1 Like
This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.