6.10. GPIO¶
6.10.1. Overview¶
The GPIO example shows how to change GPIO output pin level and use GPIO input pin trigger interrupt.
6.10.2. Board Setting¶
No special settings are required
6.10.3. Running the example¶
When the example runs successfully, the LED will flash 5 times, then press GPIO button (please check Button section of specific board) will toggle the LED status, and the following message is displayed in the terminal:
> toggling led 5 times in total
> toggling led 1/5 times
> toggling led 2/5 times
> toggling led 3/5 times
> toggling led 4/5 times
> toggling led 5/5 times
> input interrupt
> user led will be switched on off based on user switch
> toggle led pin output
> toggle led pin output