Skip to content

Examples: IR Rec

Nikola Jovanovic edited this page Oct 4, 2020 · 2 revisions

Examples: IR Rec

See files in examples folder

Example output:

IR Rx @ 17: Setup Started
IR Rx @ 17: Setup Done (2020-09-13 23:23:58.912651)
IR Rx @ 17: Waits for IR signal... (Ctrl+C to exit)
ir_decoded=00000000111101111100000000111111 len=32
ir_dec_hex=0xf7c03f
Valid IR code! Pressed button was of IR remote model f7: 
on
{'f7': {'on': {'0xf7c03f', '00000000111101111100000000111111'}}}
ir_decoded=00000000111101110100000010111111 len=32
ir_dec_hex=0xf740bf
Valid IR code! Pressed button was of IR remote model f7: 
off
{'f7': {'on': {'0xf7c03f', '00000000111101111100000000111111'}, 'off': {'00000000111101110100000010111111', '0xf740bf'}}}
ir_decoded=00000000111111011010100001010111 len=32
ir_dec_hex=0xfda857
Valid IR code! Pressed button was of IR remote model fd: 
ok
{'f7': {'on': {'0xf7c03f', '00000000111101111100000000111111'}, 'off': {'00000000111101110100000010111111', '0xf740bf'}}, 'fd': {'ok': {'0xfda857', '00000000111111011010100001010111'}}}
Interrupt signal 2 on line 43 in /home/pi/Playground/rpi_ir/capture/ir-rec_main.py

Notice 2 different models: fd and f7.