Thank you all for your input.
I did search but didn't find the state machine route
I will have a play and get back if I get stuck.
Is there any one book you guys would recommend for Embed ...
I am very new to C programming and reading lots and asking lots of questions that most of you probably already know the answers to.
Question: I would like to read the input from 2 push button switch ...