How to turn off the ir light?


#1

Hello, I am trying the lirc to control the tv and I notice there are 8 ir light always on since the matrix creator power on.
How to turn these ir light off? I got malos installed.


#2

You can see here that the IR Ring is connected to the Raspberry Pi GPIO05:
NET "IR_RING_EN_PI" LOC = "P138" | IOSTANDARD = LVCMOS33; #RPI_GPIO5

So, to turn OFF/ON the IR Ring you can use:

echo 5 > /sys/class/gpio/export
$ echo out > /sys/class/gpio/gpio5/direction

Then for turn it OFF use:

$ echo 1 > /sys/class/gpio/gpio5/value

and for turn it OFF use:

$ echo 1 > /sys/class/gpio/gpio5/value


#3

Add the command (echo out > /sys/class/gpio/gpio5/direction) to rc.local then reboot, and it works!
Thank you.