Fix analogWrite which requires digital pin to be high.

I've found that the digital output needs to be high for the PWM to work.  This change fixes issue #1.