modified analogWrite to wait for end of conversion
Merge pull request #1202 from vdorr/lib-1.5

modified analogWrite to wait for end of conversion