Pin Manager Setup
Step 4 - Open the Pin Manager. Then, click on the PORTA pin 4 (RA4) Output blue lock symbol, which is connected to the D2 LED. Once selected, it should turn green. This adds this RA4 I/O pin to the project. It should look like the picture below when completed: