Lab 1: Create the Application
Step 5: With MHC, Configure GPIO Pins and Interrupts
Open the Pin Configuration pane by navigating to MHC > Tools > Pin Configuration.
Open the Pin Settings tab and look for pins #B37 to #B39.
Add a custom name and apply the following configuration for each pin:
- B37: LED_RED
- B38: LED_GREEN
- B39: SWITCH1
Make sure to enable the change notification item for pin #B39 to enable the interrupt on this pin.
Set B39/RA10 as a digital input.
Figure 1: Configure GPIO pins