Thanks Steve. I've tried but failed !! The code was copied exactly as you have posted it, but didn't seem to work. I've tried to see what the problem is but can't figure it out.
Just to confirm
RC0 is Outputs
RB0 is Switch Input.
Can you help please.
Thanks again.
Steve
Bookmarks