Just one thought ruijc
Since your trying to troubleshoot the functionality of a pin to a particular device (perhaps an LED) , why not consider reducing down to the lowest level?
Create a program to control that one device and nothing more.
You can swap the code and wiring from gpio.0 to gpio.1 to see if the device is acting differently. That would allow you to verify if the issue is hardware vs code.
In some cases, I have had to sink a device rather than source it due to current limitations on the PIC. Hope that helps. :-]
Bookmarks