<
From version < 8.1 >
edited by Edwin Chen
on 2022/05/03 08:55
To version < 9.1 >
edited by Edwin Chen
on 2022/05/03 08:59
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -36,4 +36,12 @@
36 36  **cat  /sys/class/gpio/gpio18/value**  ~/~/ Get GPIO18 value if set input
37 37  )))
38 38  
39 +(% class="box infomessage" %)
40 +(((
41 +**Control a GPIO already exported as SYSTEM LEDs .**
42 +**echo 1 > /sys/class/leds/dragino2\:red\:system/brightness**  ~/~/ Turn On LED dragino2:red:system
43 +**echo 0 > /sys/class/leds/dragino2\:red\:system/brightness**  ~/~/ Turn off LED dragino2:red:system
44 +)))
45 +
46 +
39 39  Reference: [[http:~~/~~/www.avrfreaks.net/wiki/index.php/Documentation:Linux/GPIO#gpio-sysfs>>url:http://www.avrfreaks.net/wiki/index.php/Documentation:Linux/GPIO#gpio-sysfs]]
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0