Thank you for the help i realized i needed a resistor to the input.
Consider the value in binary. 0x02 is binary 00000010. Each binary bit represents an IO pin, LSB is GP0 then going in sequence.Now how do i change GP4 to a input pin with TRISIO = 0x02;.
thanks again for the help, also how can i learn what 0x02 is and how it associate GP0 GP1 as out and in?
thansk

