AnalogWrite function added to match arduino syntax