I see two versions of LED wiring with the microcontroller. Please take a look at the attached image.

We can wire the other end to Gnd, or we can wire the other end to Vdd.
I have tried the second version with PIC18F45K22.
I am interested to know which version you use and why, and which version you would recommend to other

We can wire the other end to Gnd, or we can wire the other end to Vdd.
I have tried the second version with PIC18F45K22.
I am interested to know which version you use and why, and which version you would recommend to other

