Skip to main content

PCAL6416A - Getting started

Arduino library​

This library isn't in the Arduino Library Manager yet, so download it directly from the GitHub repository:

PCAL6416A GPIO Expander Breakout Arduino library

PCAL6416A Arduino library by Soldered

Click Code → Download ZIP on the repository page, then in the Arduino IDE go to Sketch → Include Library → Add .ZIP Library... and select the downloaded file.

ℹ️

Are you a first-time Arduino user? For a detailed tutorial on getting started with Arduino, see this section of our docs:

Getting started with Arduino

A comprehensive tutorial on how to set up and upload code to an Arduino board for the first time, from scratch!


Connections​

Below is an example connection diagram for NULA Deepsleep. These pins will be used in the examples throughout this documentation.

If your board has a Qwiic connector, connect it directly to the PCAL6416A board with a Qwiic cable:

NULA DeepsleepPCAL6416A Board
QwiicQwiic
ℹ️

If you prefer, you can use I2C pins to manually connect:

NULA DeepsleepPCAL6416A Board
IO8 (Default SDA pin)SDA
IO9 (Default SCL pin)SCL
VCCVCC
GNDGND