Crow-Baring the LED to turn it OFF is not very elegant and significantly adds to Global Warming when the LED is OFF.
A better solution would be to connect one end of the Resitor to VDD (as you have it), the other end to the LED Anode, and the LED Kathode to PIC pin RA4. Drive the pin LOW for ON, and HIGH for OFF.
Bookmarks