support for different pulse length, added "contact1" protocol (pimatic/pimatic#280)