Last modified by Xiaoling on 2023/06/01 17:01

From version 7.1
edited by Edwin Chen
on 2022/05/03 08:55
Change comment: There is no comment for this version
To version 14.2
edited by Xiaoling
on 2022/05/07 16:21
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Edwin
1 +XWiki.Xiaoling
Content
... ... @@ -4,20 +4,55 @@
4 4  
5 5  = Products LEDs Mapping =
6 6  
7 +{{velocity}}
8 +$xwiki.ssfx.use("js/xwiki/table/table.css")
9 +$xwiki.jsfx.use("js/xwiki/table/tablefilterNsort.js", true)
10 +{{/velocity}}
7 7  
8 -== Sub-paragraph ==
12 +(% class="doOddEven filterable grid sortable" id="tableid" %)
13 +(% class="sortHeader" %)|=Model|=Global LED|=(% style="width: 66px;" %)PWR LED|=(% style="width: 66px;" %)LAN LED|=WAn LED|=WIFI LED|=SENSOR LED|=4G control (Second +3.3v)|=USB POWER(+5v) Control
14 +|LPS8|(((
15 +GPIO28(BLUE),
9 9  
10 -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.
17 +GPIO21(RED),
11 11  
12 -== Sub-paragraph ==
19 +GPIO22(GREEN)
20 +)))|(% style="width:66px" %)(((
21 +
13 13  
14 -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.
23 ++3.3v
15 15  
16 -=== Sub-sub paragraph ===
25 +
26 +)))|(% style="width:80px" %) |GPIO17(RED)| | | |
27 +|LPS8N|(((
28 +GPIO28(BLUE),
17 17  
18 -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.
30 +GPIO21(RED),
19 19  
32 +GPIO22(GREEN)
33 +)))|(% style="width:66px" %)(((
34 +
20 20  
36 ++3.3v
37 +)))|(% style="width:80px" %) |GPIO17(RED)|(((
38 +GPIO16(BLUE),
39 +
40 +GPIO26(RED),
41 +
42 +GPIO27(GREEN)
43 +)))| |GPIO15|
44 +|LG308|GPIO28(RED)|(% style="width:66px" %)+3.3v|(% style="width:80px" %)GPIO13(RED) |GPIO17(RED)| GPIO0(RED)| |GPIO15 |GPIO1
45 +|DLOS8|GPIO28(GREEN)|(% style="width:66px" %)+3.3v|(% style="width:80px" %) |GPIO17(GREEN)| GPIO0(GREEN)| |GPIO15 |GPIO1
46 +|HP0C|PA8(GREEN),PA9(RED)|(% style="width:66px" %)+3.3v|(% style="width:80px" %)EPHY-LINK-LED(GREEN),PA17(BLUE)| |PA7(RED)| | |
47 +|HP0A|PA8(GREEN)|(% style="width:66px" %)+3.3v|(% style="width:80px" %)EPHY-LINK-LED|PA9(RED)|PA7(RED)| |PA17|
48 +|IBB|GPIO28(GREEN)|(% style="width:66px" %)+3.3v|(% style="width:80px" %)GPIO13(GREEN)|GPIO17(GREEN)|GPIO0(GREEN)|SENSOR_LED| |GPIO1
49 +|LIG16|GPIO28(RED)|(% style="width:66px" %)+3.3v|(% style="width:80px" %)GPIO22(GREEN)|GPIO17(GREEN)|GPIO0(GREEN)|GPIO21(GREEN)| |
50 +|MS14N|GPIO28(GREEN)|(% style="width:66px" %)+3.3v|(% style="width:80px" %)GPIO13(GREEN)|GPIO17(GREEN)|GPIO0(GREEN)|SENSOR_LED| |GPIO1
51 +
52 +
53 +
54 +
55 +
21 21  = Control LEDs & GPIOs =
22 22  
23 23  == OpenWrt Base OS ==
... ... @@ -24,7 +24,7 @@
24 24  
25 25  (% class="box infomessage" id="HControlanGeneralGPIO:" %)
26 26  (((
27 -**Control an General GPIO:**
62 +**Control a General GPIO:**
28 28  
29 29  **echo 18 > /sys/class/gpio/export**     ~/~/ Export gpio 18 so we can use it
30 30  **echo "high" > /sys/class/gpio/gpio18/direction**   ~/~/  Set direction to out and
... ... @@ -36,4 +36,12 @@
36 36  **cat  /sys/class/gpio/gpio18/value**  ~/~/ Get GPIO18 value if set input
37 37  )))
38 38  
74 +(% class="box infomessage" %)
75 +(((
76 +**Control a GPIO already exported as SYSTEM LEDs .**
77 +**echo 1 > /sys/class/leds/dragino2\:red\:system/brightness**  ~/~/ Turn On LED dragino2:red:system
78 +**echo 0 > /sys/class/leds/dragino2\:red\:system/brightness**  ~/~/ Turn off LED dragino2:red:system
79 +)))
80 +
81 +
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]]
image-20220507155509-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +44.6 KB
Content