Quote Originally Posted by Techbuilder View Post
How do you know rentron didn't just put it on with out trying the firmware out?
And throw ANY credibility out the window? I don't think so... Besides, I've seen their work, I've used their products and software. Good stuff...

But anyway I don't get how reading the inputs work yet.
Let's start simple say I wanted two leds to chase eachother
I connect led 1 to RB0and led 2 to RB1
and I guess I would connect the switch to RB2
but would I have to read RB2 Input
then send and output to RB0 and RB1 when RB2 makes contact?
The PIC I am using is a 16F84A
Good example of how to use a button and the BUTTON command in Section 5.2 of the PBP manual. But that's probably too much for your example...
To read a pin, you have to set it to an input (as the datasheet states), you may also need a variable to store the state of that pin so you can work with it elsewhere.

input_pin var portb.2
input input_pin
temp var byte
temp = input_pin

Now "temp" has the state of PortB.2.
Again, break it down to the simplest possible level...
Write a program that reads the portb.2, and have the LED on portb.0 light up if the button on portb.2 is pressed, and the LED on portb.1 light if the button is released.