Changes for page Control Gateway GPIOs & LEDs
Last modified by Xiaoling on 2023/06/01 17:01
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
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]]