analogWrite, sets pin high at 255

sorry, nevermind, just commented out the digitalWrite(pin, HIGH) under the else if condition for 255 in wiring_analog.c file

This solves the issue