sparkfun Qwiic GPIO Hook-Up Manual page 21

Table of Contents

Advertisement

Qwiic GPIO Example 3
Example 3 demonstrates how to invert an I/O pin configured as an input. We first set all eight pins as inputs and
then invert half of them using the
function. As we covered in the Arduino Examples section,
setInversion(self)
each I/O pin set as an input defaults to an active HIGH input so inverting it switches it to an active LOW input.
Again, note that you need to define the inversion status of each pin you wish to invert and then write that data
using the
function.
setInversion

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Qwiic GPIO and is the answer not in the manual?

Questions and answers

Table of Contents