BPI-R1 IR interface
BPI-M1 support IR interface on board. you can use it as remote control.
How to use IR interface
test on bananian image:
1,install lirc
1
apt-get install lirc
2
apt-get install evtest
Copied!
2,edit /etc/lirc/hardware.conf as below:
nano /etc/lirc/hardware.conf
1
# /etc/lirc/hardware.conf
2
#
3
# Arguments which will be used when launching lircd
4
LIRCD_ARGS="--uinput"
5
#Don't start lircmd even if there seems to be a good config file
6
#START_LIRCMD=false
7
8
#Don't start irexec, even if a good config file seems to exist.
9
#START_IREXEC=false
10
11
#Try to load appropriate kernel modules
12
LOAD_MODULES=true
13
14
# Run "lircd --driver=help" for a list of supported drivers.
15
DRIVER="UNCONFIGURED"
16
# usually /dev/lirc0 is the correct setting for systems using udev
17
DEVICE="/dev/input/event0"
18
MODULES="sunxi-ir"
Copied!
ctrl+O save and ctrl+x exit.
3,test lirc
service lirc start
4 test remote-control unit
evtest
choose "0" must xunxi-ir
please note:value 0 value 1
press is:1,unpress is:0
Copy link