OK corrected that (original example code must of been for higher resolution...) but still no joy in setting the thresholds

Motor two is always off in this example as its the other terminal to the H bridge