Skip to content

Commit

Permalink
Add Note about Interrupt Pin
Browse files Browse the repository at this point in the history
  • Loading branch information
bboyho committed Nov 27, 2024
1 parent 5f837d5 commit 43bee22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion docs/arduino_example.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,10 @@ After uploading the code, open the [Serial Monitor](https://learn.sparkfun.com/t

### Example 2: Interrupt Pin

From your downloads, open the example labeled as **Example2_InterruptReadButtons_WriteLEDs.ino**. This example reads the button presses and writes to the non-addressable LED whenever there is an interrupt using the PCA9554 I/O I<sup>2</sup>C Expander.
!!! note
Example 3 from the SparkFun I2C Expander Arduino Library uses the IoT RedBoard - ESP32's pin `14` for the interrupt. The example in this tutorial is slightly different and uses pin `4` for the interrupt.

From your downloads, open the example labeled as **Example2_InterruptReadButtons_WriteLEDs.ino**. This example reads the button presses and writes to the non-addressable LED whenever there is an interrupt using the PCA9554 I/O I<sup>2</sup>C Expander. Make sure to connect the Qwiic Directional Pad's interrupt pin to the IoT RedBoard's pin `4`.

For users using an Arduino microcontroller, select your board in the Tools menu (in our case the **SparkFun ESP32 IoT RedBoard**) and the correct Port it enumerated on.

Expand Down
3 changes: 3 additions & 0 deletions docs/hardware_hookup.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@ For users that want to notify the microcontroller that there is a button press,
</tr>
</table>
</div>

!!! note
Example 3 from the SparkFun I2C Expander Arduino Library uses the IoT RedBoard - ESP32's pin `14` for the interrupt. The example in this tutorial is slightly different and uses pin `4` for the interrupt.

0 comments on commit 43bee22

Please sign in to comment.