analogWrite fixes