Format IR Reader

This commit is contained in:
Craig Richardson 2018-05-14 17:48:53 +01:00
parent e8f054d2e9
commit d5829fdee4

View file

@ -23,20 +23,18 @@ while True:
# Wait for a pulse to be detected.
detected = decoder.read_pulses(pulses)
"""
print the number of pulses detected
note: pulse count is an excellent indicator as to the quality of IR code
received.
# print the number of pulses detected
# note: pulse count is an excellent indicator as to the quality of IR code
# received.
#
# If you are expecting 67 each time (Adafruit Mini Remote Control #389)
# and only receive 57 this will result in a incomplete listener
If you are expecting 67 each time (Adafruit Mini Remote Control #389)
and only receive 57 this will result in a incomplete listener
"""
print("pulse count: ", len(detected))
"""
print in list form of the pulse duration in microseconds
typically starts with ~9,000 microseconds followed by a ~4,000 microseconds
which is standard IR preamble
"""
# print in list form of the pulse duration in microseconds
# typically starts with ~9,000 microseconds followed by a ~4,000 microseconds
# which is standard IR preamble
print(detected)
print()