Getting Start - How to Use IR Function onboard.

How to Use IR function onboard.

  • You need to enable gpio-ir function by modify /boot/config.txt file. uncomment this line if not exsit please add it.
dtoverlay=gpio-ir,gpio_pin=17 
  • Install lirc package:
sudo apt-get install lirc
  • Modify configuration file on location: /etc/lirc/lirc_options.conf and make sure it has following parameters:
driver          = default
device          = /dev/lirc0
  • Reboot your Raspberry Pi and test it with following command:
mode2 -d /dev/lirc1