Hi I am controlling the tilt/pan operations of a camera using a c167 microcontroller and i would like to use a microswitch as an end stop to stop the camera turning to far. Please could you give me some advice on to get the microcontroller to recognise when the switch has been pressed. Thanks John