13. Infrared¶
13.1. Custom IR Remote Control¶
1 2 3 4 5 6 7 8 9 | #Set output level
echo '7 4 1 7'> /proc/sys/kernel/printk
#Start printing
echo 1 > /sys/module/rockchip_pwm_remotectl/parameters/code_print
#Press the button
#Obtain user code and key code
According to the user code, set the device tree @ir_key1, and set the function through the key.
|

Modify the device tree, set the function.