Soft hand code to control mbed controller - actuates pneumatic solenoids