Format IR Reader
This commit is contained in:
parent
e8f054d2e9
commit
d5829fdee4
1 changed files with 10 additions and 12 deletions
|
|
@ -23,20 +23,18 @@ while True:
|
||||||
# Wait for a pulse to be detected.
|
# Wait for a pulse to be detected.
|
||||||
detected = decoder.read_pulses(pulses)
|
detected = decoder.read_pulses(pulses)
|
||||||
|
|
||||||
"""
|
# print the number of pulses detected
|
||||||
print the number of pulses detected
|
# note: pulse count is an excellent indicator as to the quality of IR code
|
||||||
note: pulse count is an excellent indicator as to the quality of IR code
|
# received.
|
||||||
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("pulse count: ", len(detected))
|
||||||
|
|
||||||
"""
|
# print in list form of the pulse duration in microseconds
|
||||||
print in list form of the pulse duration in microseconds
|
# typically starts with ~9,000 microseconds followed by a ~4,000 microseconds
|
||||||
typically starts with ~9,000 microseconds followed by a ~4,000 microseconds
|
# which is standard IR preamble
|
||||||
which is standard IR preamble
|
|
||||||
"""
|
|
||||||
print(detected)
|
print(detected)
|
||||||
print()
|
print()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue