Fix analogWrite which requires digital pin to be high.