Changes for page Control Gateway GPIOs & LEDs
Last modified by Xiaoling on 2023/06/01 17:01
From version 1.2
edited by Edwin Chen
on 2022/05/03 07:57
on 2022/05/03 07:57
Change comment:
There is no comment for this version
To version 6.1
edited by Edwin Chen
on 2022/05/03 08:54
on 2022/05/03 08:54
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -22,11 +22,10 @@ 22 22 23 23 == OpenWrt Base OS == 24 24 25 -Example to Control an GPIO: 26 - 27 - 28 -(% class="box infomessage" %) 25 +(% class="box infomessage" id="HControlanGeneralGPIO:" %) 29 29 ((( 27 +Control an General GPIO: 28 + 30 30 **echo 18 > /sys/class/gpio/export** ~/~/ Export gpio 18 so we can use it 31 31 **echo "high" > /sys/class/gpio/gpio18/direction** ~/~/ Set direction to out and 32 32 set level to high. Use "low" to set direction to output and level to low ... ... @@ -37,10 +37,4 @@ 37 37 **cat /sys/class/gpio/gpio18/value** ~/~/ Get GPIO18 value if set input 38 38 ))) 39 39 40 -== Reference == 41 - 42 -[[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]] 43 - 44 -== Sub-paragraph == 45 - 46 -Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 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]]