I've been reading thru the code and am currently working on my own program based on Mr_E's program for 3 digits. I'm actually modding it to work with 2 and am having a slight issue. I'm definitely a newbie on this but could use some pointers.

My current setup is to have PortA pins 0 and 1 be inputs for sensors I'm hooking up. PortA 2 and 3 are hooked up to the transistors as described on meLabs site for the 7seg 4 display. And planning to use either a pin on PortB or PortA pin 5 to drive a motor.

Now on my understanding this would result into what I want

TRISA = %11110011 <--- 0011 being outputs to transistors and inputs from sensors

TRISB = %11111110 <-- 0 being the motor servo

Now is there anything else that may cause a issue with doing it this way where the 1st 7dig segment doens't light up and the 2nd would cycle thru erronous LED's lighting up?

I could go into more detail but being I'm at work, I can't really go into it at the moment. But any hints would be helpful. Thanks