Fixed typo in adaptor to remove pwm pin when doing digital write.
Release PWM pin if using it as digital read also.