updated pwm_input.ino with code to read PWM input from digital pins