I am working on a project that needs two infrared sensors (left and right). I would like to define the permanent access names for each infrared sensor. Example:
dtoverlay = gpio-ir, gpio_pin = 19 --- >>> /dev/lirc0 --- >>> /dev/input/event0
dtoverlay = gpio-ir, gpio_pin = 26 --- >>> /dev/lirc1 --- >>> /dev/input/event1
my python script is doing event readings on /dev/input/event0 and /dev/input/event1 devices. However, when I use a keyboard or mouse, these numbers can change. Is there a way to define these names? UDEV maybe? I've been looking on google but I haven't found any example.