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 17:31]
odroid [The red LED turn off (Applicable for 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 6: Line 6:
 Simply you can turn on/off that with putting an option using **echo** command. Simply you can turn on/off that with putting an option using **echo** command.
  
-===== Turn off ====+==== Turn off ====
 Do **echo none** to turn off. Do **echo none** to turn off.
 <code bash target> <code bash target>
Line 12: Line 12:
 </​code>​ </​code>​
  
-===== Turn on =====+==== Turn on ====
 Do **echo MODE** to turn on with MODE. Do **echo MODE** to turn on with MODE.
 <code bash target> <code bash target>
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>​ 
- 
-===== The red LED turn off (Applicable for ODROID-HC4 only) ===== 
-The Red LED on the HC4 is not hard-wired, so you can turn off the RED LED to indicate the power status on the ODROID-HC4. 
- 
-The GPIO number of the red LED on the HC4 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 92: 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>​
 +