Quote Originally Posted by Demon View Post

Even if my ports are defined as digital?
TRISx = 1 'Sets the port as analog
TRISx = 0 'Sets the port as digital

When TRISx = 1 the port is set to a high impedance input mode, meaning no current in or out for the LEDs. In other word it turns the port off for the LEDs.