Skip to content
/ PCA9539 Public

PCA9539 16bit Port Expander Arduino/ESP library

License

Notifications You must be signed in to change notification settings

AD0ND/PCA9539

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PCA9539

Arduino Library to approach PCA9539 I2C expander with digitalRead, digitalWrite and pinMode functions.

NOTE Pull RESET (pin 3) HIGH for normal operation on TI variant.

Device addressing varies between vendors, if you cannot find the address on the I2C bus use the I2C Scanner sketch by Nick Gammon to determine correct address. http://www.gammon.com.au/i2c

##Installation:

  • a) Just download the zip file
  • b) move PCA9539_LIB to the Users Arduino library (usually My documents\Arduino\Libraries)
  • c) Create a new sketch and copy the example file into your sketch
  • d) Compile, download and done.

Support functions:

  • pinMode() same as standard Arduino
  • digitalRead() same as Arduino
  • digitalWrite() same as Arduino

Additional

The code supports either pinnumbers 0 - 15 (port 0 = 0-7, port 1 = 8-15) or A0 - A7 and B0 - B7. This to stay more or less in sync with Arduino.

Data Sheet

the data sheet for the PCA9539a is available here: http://www.ti.com/lit/ds/symlink/pca9539.pdf

About

PCA9539 16bit Port Expander Arduino/ESP library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages