Introduction
This example configures multiple GPIO pins connected to LEDs on the EVM in output mode. The application toggles the each LED on/off for 10 seconds and exits.
Supported Combinations
Parameter | Value |
CPU + OS | r5fss0-0 nortos |
Toolchain | ti-arm-clang |
Board | am243x-lp |
Example folder | examples/drivers/gpio/gpio_multi_led_blink/ |
Steps to Run the Example
- When using CCS projects to build, import the CCS project for the required combination and build it using the CCS project menu (see Using SDK with CCS Projects).
- When using makefiles to build, note the required combination and build using make command (see Using SDK with Makefiles)
- Launch a CCS debug session and run the executable, see CCS Launch, Load and Run
- Watch out for LED LD1 on the LP to blink which is controlled by GPIO0_22.
- Watch out for LED LD5 on the LP to blink which is controlled by GPIO0_26.
- Watch out for LED LD4 on the LP to blink which is controlled by GPIO0_27.
- Watch out for LED LD3(RED) on the LP to blink which is controlled by GPIO1_38.
- Watch out for LED LD3(GREEN) on the LP to blink which is controlled by GPIO1_39.
- Watch out for LED LD2 on the LP to blink which is controlled by GPIO1_55.
See Also
GPIO
Sample Output
Shown below is a sample output when the application is run,
GPIO Multi LED Blink Test Started ...
Each LED will Blink for 10 seconds ...
GPIO Multi LED Blink Test Passed!!
All tests have passed!!