Added pwm and digital microcode functions to library