Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
common:application_note:led_control [2020/12/07 18:51]
odroid [The red LED turn off (Applicable for the ODROID-HC4 only)]
common:application_note:led_control [2020/12/10 09:43] (current)
odroid [How to control the Red power LED (Applicable for the ODROID-HC4 only)]
Line 27: Line 27:
 root@odroid:​~#​ cat /​sys/​class/​leds/​blue\:​heartbeat/​trigger root@odroid:​~#​ cat /​sys/​class/​leds/​blue\:​heartbeat/​trigger
 none kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock timer oneshot [heartbeat] backlight gpio cpu0 cpu1 cpu2 cpu3 cpu4 cpu5 default-on transient panic rc_feedback emmc sd none kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock timer oneshot [heartbeat] backlight gpio cpu0 cpu1 cpu2 cpu3 cpu4 cpu5 default-on transient panic rc_feedback emmc sd
-</​code>​ 
- 
-===== How to control the Red power LED (Applicable for the ODROID-HC4 only) ===== 
-The Red LED on the HC4 board is not hard-wired and you can turn it off by software.\\ 
-The GPIO number of the red LED on the HC4 board is 503.\\ 
- 
-<code bash target> 
-# Export GPIO 
-root@odroid:​~#​ echo 503 > /​sys/​class/​export 
- 
-# To set as Output ​ 
-root@odroid:​~#​ echo out > /​sys/​class/​gpio/​gpio503/​direction 
- 
-# Output as low. 
-root@odroid:​~#​ echo 0 > /​sys/​class/​gpio/​gpio503/​value 
 </​code>​ </​code>​
  
Line 91: Line 76:
   * If you want to turn the LED off automatically in boot process, add **echo none > /​sys/​class/​leds/​blue\:​heartbeat/​trigger** in **/​etc/​rc.local** file.   * If you want to turn the LED off automatically in boot process, add **echo none > /​sys/​class/​leds/​blue\:​heartbeat/​trigger** in **/​etc/​rc.local** file.
 </​WRAP>​ </​WRAP>​
 +
 +
 +===== How to control the Red power LED (Applicable for the ODROID-HC4 only) =====
 +The Red LED on the HC4 board is not hard-wired and you can turn it off by software.\\
 +The GPIO number of the red LED on the HC4 board is 503.\\
 +
 +<code bash target>
 +# Export GPIO
 +root@odroid:​~#​ echo 503 > /​sys/​class/​gpio/​export
 +
 +# To set as Output ​
 +root@odroid:​~#​ echo out > /​sys/​class/​gpio/​gpio503/​direction
 +
 +# Output as low.
 +root@odroid:​~#​ echo 0 > /​sys/​class/​gpio/​gpio503/​value
 +</​code>​
 +