first attempt at bit banging pwm