Evening everyone.

I've been doing a lot of reading of late some beneficial some confusing.

I've decided to try and make a 12F683 turn an LED on when a button is momentarily pressed, then expand this further. I can see lots of possibilities in being able to make outputs do different things on receipt of an input/s.

Is something like this on the right lines?

Code:
IF GPIO.x = HIGH 'Button is pressed.

THEN OUTPUT GPIO.x HIGH 'Turns LED on
I've put the driving a seven segment display using a 16F684 and part of two ports to on hold just for the minute.

David