手機 - Cosmo Communicator - Debian - LED控制



參考資訊:
https://github.com/gemian/gemian/wiki/LEDs
https://github-wiki-see.page/m/gemian/gemian/wiki/LEDs

步驟如下:

The keyboard backlight can be controlled (0%, 20%, 40%, 60%, 80%, 100%):
echo 40 > /proc/aw9524_led_proc
echo 41 > /proc/aw9524_led_proc
echo 42 > /proc/aw9524_led_proc
echo 43 > /proc/aw9524_led_proc
echo 44 > /proc/aw9524_led_proc
echo 45 > /proc/aw9524_led_proc

The internal RGB led next to tab/esc buttons can be controlled:
echo 110 > /proc/aw9524_led_proc # Red off
echo 119 > /proc/aw9524_led_proc # Red max
echo 120 > /proc/aw9524_led_proc # Green off
echo 129 > /proc/aw9524_led_proc # Green max
echo 130 > /proc/aw9524_led_proc # Blue off
echo 139 > /proc/aw9524_led_proc # Blue max

The rocker has a left and right LED which can be controlled:
echo 310 > /proc/aw9524_led_proc # Left red off
echo 319 > /proc/aw9524_led_proc # Left red max
echo 210 > /proc/aw9524_led_proc # Right red off
echo 219 > /proc/aw9524_led_proc # Right red max
echo 320 > /proc/aw9524_led_proc # Left green off
echo 329 > /proc/aw9524_led_proc # Left green max
echo 220 > /proc/aw9524_led_proc # Right green off
echo 229 > /proc/aw9524_led_proc # Right green max
echo 330 > /proc/aw9524_led_proc # Left blue off
echo 339 > /proc/aw9524_led_proc # Left blue max
echo 230 > /proc/aw9524_led_proc # Right blue off
echo 239 > /proc/aw9524_led_proc # Right blue max

The camera has an led just above it, which can be controlled:
echo 710 > /proc/aw9524_led_proc # Red off
echo 719 > /proc/aw9524_led_proc # Red max
echo 720 > /proc/aw9524_led_proc # Green off
echo 729 > /proc/aw9524_led_proc # Green max
echo 730 > /proc/aw9524_led_proc # Blue off
echo 739 > /proc/aw9524_led_proc # Blue max

The rocker and camera leds can all be controlled together:
echo 610 > /proc/aw9524_led_proc # Red off
echo 619 > /proc/aw9524_led_proc # Red max
echo 620 > /proc/aw9524_led_proc # Green off
echo 629 > /proc/aw9524_led_proc # Green max
echo 630 > /proc/aw9524_led_proc # Blue off
echo 639 > /proc/aw9524_led_proc # Blue max