Arduino Yun cheat sheet: Difference between revisions

Line 662: Line 662:
  [https://www.kernel.org/doc/Documentation/leds/leds-class.txt LED handling under Linux]
  [https://www.kernel.org/doc/Documentation/leds/leds-class.txt LED handling under Linux]


== 起動完了後の LED ==
== 起動後の LED の点減 ==
('''OpenWrt側で''')
<syntaxhighlight lang="bash" enclose="div">
cat /sys/class/leds/ds\:green\:usb/trigger
none switch0 [default-on] timer phy0rx phy0tx phy0assoc phy0radio phy0tpt netdev
cat /sys/class/leds/ds\:green\:wlan/trigger
[none] switch0 default-on timer phy0rx phy0tx phy0assoc phy0radio phy0tpt netdev
</syntaxhighlight>
 
USB LED (まぶしい白色) は /etc/rc.local の boot-complete-notify で常時点灯に設定される。
USB LED (まぶしい白色) は /etc/rc.local の boot-complete-notify で常時点灯に設定される。
  [https://github.com/arduino/openwrt-packages-yun/blob/0fb82cf85e489ffad89a78a58beac9d256c1bbbf/arduino/yun-scripts/files/usr/bin/boot-complete-notify boot-complete-notify]
  [https://github.com/arduino/openwrt-packages-yun/blob/0fb82cf85e489ffad89a78a58beac9d256c1bbbf/arduino/yun-scripts/files/usr/bin/boot-complete-notify boot-complete-notify]