Added a check for valid pins.
Merge branch 'master' of github.com:cnobile2012/RobotControl