Re: 2 LEDs used Bi-directionally

Originally Posted by
Demon
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.
"No one is completely worthless. They can always serve as a bad example."
Anonymous
Bookmarks