implement analogWrite(pin, value)