Photon PulseIn Function

@tcb2 Yep, confirmed working :smile: