]>
vault307.fbx.one Git - ir_decoder.git/blob - read_code.py
11 # wait for the leading pulse
12 while pin
.value() == 1:
19 # Sample signal every 562.5µs
22 raw
.append(pin
.value())
35 # if low signal is longer than 562.5µs it 1 otherwise 0
36 code
+= "1" if count
> 10 else "0"
39 # trim message transmission and repeat codes