6

I want to use an IR diod receiver. I installed lirc but when I write to terminal this code:

mode2 -d /dev/lirc0 

it says

mode2: could not get file information for /dev/lirc0
mode2: defauld_init(): No such file or directory

Where is the problem? Any idea?

Ghanima
  • 15,958
  • 17
  • 65
  • 125

1 Answers1

6

It means there is a configuration issue.

To fix it:

  1. sudo vim /boot/config.txt
  2. add dtoverlay=lirc-rpi,gpio_in_pin=16 (change the pin to whatever you're using)
  3. reboot
Flow
  • 61
  • 1
  • 2