pub fn decode(pulses: &[u16]) -> Result<Code, Error>
Given a sequence of pulse durations in microseconds (starting with a high pulse), try to decode a button code.