Skip to content

An Arduino library for interfacing with 4 and 8-bit I2C GPIO expanders. PCA9534/TCA9534, PCA9536/TCA9536, PCA9537/TCA9537, PCA9554/TCA9554, PCA9556/TCA9556, PCA9557/TCA9557 are supported.

License

Notifications You must be signed in to change notification settings

sparkfun/SparkFun_I2C_Expander_Arduino_Library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SparkFun I2C Expander Library

SparkFun Qwiic Power Switch
(PRT-26784)
SparkFun Qwiic GPIO
(DEV-17047)
SparkFun RGB Sensor - BH1749NUC
(SPX-14733)
SparkFun Qwiic Directional Pad
(PRT-26851)

The SparkFun I2C Expander Library makes working with 4-bit and 8-bit I2C digital I/O expanders very easy. These expanders can read or write four or eight separate I/O.

The following ICs are supported:

  • PCA9534/TCA9534
  • PCA9536/TCA9536
  • PCA9537/TCA9537
  • PCA9554/TCA9554
  • PCA9556/TCA9556
  • PCA9557/TCA9557
  • And maybe others...

This library supports using alternate Wire ports (ie, Wire1, etc) as well as alternate I2C addresses and includes support for interrupt pin errata (PCA9554).

This library supports standard pinMode, digitalRead, and digitalWrite functions.

Repository Contents

  • /examples - Example sketches for the library (.ino). Run these from the Arduino IDE.
  • /src - Source files for the library (.cpp, .h).
  • keywords.txt - Keywords from this library that will be highlighted in the Arduino IDE.
  • library.properties - General library properties for the Arduino package manager.

Products That Use This Library

License Information

This product is open source!

Various bits of the code have different licenses applied. Anything SparkFun wrote is beerware; if you see me (or any other SparkFun employee) at the local, and you've found our code helpful, please buy us a round!

Please use, reuse, and modify these files as you see fit. Please maintain attribution to SparkFun Electronics and release anything derivative under the same license.

Distributed as-is; no warranty is given.

  • Your friends at SparkFun.

About

An Arduino library for interfacing with 4 and 8-bit I2C GPIO expanders. PCA9534/TCA9534, PCA9536/TCA9536, PCA9537/TCA9537, PCA9554/TCA9554, PCA9556/TCA9556, PCA9557/TCA9557 are supported.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages