Skip to content

Latest commit

 

History

History
executable file
·
48 lines (33 loc) · 1.29 KB

FeatherGpio_DigitalRead_Interrupts.md

File metadata and controls

executable file
·
48 lines (33 loc) · 1.29 KB

Feather GPIO Digital Read Interrupt Test

This test is intended to validate the digital input interrupt behavior of the GPIO pins.

Setup

IDE

Compile and flash using the Arduino IDE v2.x

Breadboard

  • Place a jumper wire between the GND header pin of the Feather and the negative (blue/-) rail of the breadboard.
  • Place a jumper wires between the negative rail and each of the following pins: A0, A1, A2, A3, A4, A5, D5, D6, D9, D10, D11, D12, D13

STLINK

  • Connect the STLINK to the STDC14 connector (a.k.a. JTAG) on the Feather. This will be used to collect logs.

Usage

On boot, you should see a "ready message" on the serial monitor (e.g. "Running Feather GPIO Digital Read Interrupt Test"). Once this message has appeared, the test is running.

First press the user button, and look for the following output.

USER_BTN: Interrupt

Next, pull each of the jumpers out of the negative (blue/-) rail of the breadboard. You will see output for each pin that looks similar message from USER_BTN.

Test Assertion

This test asserts that the LPUART must be functional as a serial inteface. If LPUART is unavailable, then the onboard LED will blink rapidly indicating the test has catastrophically failed.