Difference between revisions of "Switch"
Jump to navigation
Jump to search
(Created page with "===Example of description in XML=== <syntaxhighlight lang="xml" line> <item type="switch" addr="125:1" name="№1"/> </syntaxhighlight> ===Device status (2 bytes)=== {|clas...") |
(Marked this version for translation) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | ===Example of description in XML=== | + | <languages/> |
+ | <translate> | ||
+ | ===Example of description in XML=== <!--T:1--> | ||
+ | <!--T:2--> | ||
<syntaxhighlight lang="xml" line> | <syntaxhighlight lang="xml" line> | ||
<item type="switch" addr="125:1" name="№1"/> | <item type="switch" addr="125:1" name="№1"/> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | ===Device status (2 bytes)=== | + | ===Device status (2 bytes)=== <!--T:3--> |
+ | <!--T:4--> | ||
{|class="wikitable" | {|class="wikitable" | ||
!Byte number!!description | !Byte number!!description | ||
Line 13: | Line 17: | ||
|} | |} | ||
− | ===Possible variants of setting the status of LED=== | + | ===Possible variants of setting the status of LED=== <!--T:5--> |
+ | <!--T:6--> | ||
{|class="wikitable" | {|class="wikitable" | ||
|- | |- | ||
!byte!!description | !byte!!description | ||
|- | |- | ||
− | |0||0 – R<br>1 – G<br>2 – Y<br>3 – OFF<br>4 – R/OFF 0.25 sec<br>5 – G/OFF 0.25 sec<br>6 – Y/OFF 0.25 sec<br>7 – OFF<br>8 – R/OFF 0.5 sec<br>9 – G/OFF 0.5 sec<br>10 – Y/OFF 0.5 sec<br>11 – OFF<br>12 – R/OFF 1 | + | |0||0 – R<br>1 – G<br>2 – Y<br>3 – OFF<br>4 – R/OFF 0.25 sec<br>5 – G/OFF 0.25 sec<br>6 – Y/OFF 0.25 sec<br>7 – OFF<br>8 – R/OFF 0.5 sec<br>9 – G/OFF 0.5 sec<br>10 – Y/OFF 0.5 sec<br>11 – OFF<br>12 – R/OFF 1 sec<br>13 – G/OFF 1 sec<br>14 – Y/OFF 1 sec<br>15 – OFF<br>16 – R/OFF 2 sec<br>17 – G/OFF 2 sec<br>18 – Y/OFF 2 sec<br>19 – OFF<br>20 – R/G 0.25 sec<br>21 – R/G 0.5 sec<br>22 – R/G 1 sec<br>23 – R/G 2 sec<br>24 – R/Y 0.25 sec<br>25 – R/Y 0.5 sec<br>26 – R/Y 1 sec<br>27 – R/Y 2 sec<br>28 – G/Y 0.25 sec<br>29 – G/Y 0.5 sec<br>30 – G/Y 1 sec<br>31 – G/Y 2 sec |
|} | |} | ||
− | ===Possible variants of setting the status of inverted LED=== | + | ===Possible variants of setting the status of inverted LED=== <!--T:7--> |
{|class="wikitable | {|class="wikitable | ||
|- | |- | ||
Line 29: | Line 34: | ||
|0||0 – G<br>1 – R<br>2 – Y<br>3 – OFF<br>4 – G/OFF 0.25 sec<br>5 – R/OFF 0.25 sec<br>6 – Y/OFF 0.25 sec<br>7 – OFF<br>8 – G/OFF 0.5 sec<br>9 – R/OFF 0.5 sec<br>10 – Y/OFF 0.5 sec<br>11 – OFF<br>12 – G/OFF 1 sec<br>13 – R/OFF 1 sec<br>14 – Y/OFF 1 sec<br>15 – OFF<br>16 – G/OFF 2 sec<br>17 – R/OFF 2 sec<br>18 – Y/OFF 2 sec<br>19 – OFF<br>20 – G/R 0.25 sec<br>21 – G/R 0.5 sec<br>22 – G/R 1 sec<br>23 – G/R 2 sec<br>24 – G/Y 0.25 sec<br>25 – G/Y 0.5 sec<br>26 – G/Y 1 sec<br>27 – G/Y 2 sec<br>28 – R/Y 0.25 sec<br>29 – R/Y 0.5 sec<br>30 – R/Y 1 sec<br>31 – R/Y 2 sec | |0||0 – G<br>1 – R<br>2 – Y<br>3 – OFF<br>4 – G/OFF 0.25 sec<br>5 – R/OFF 0.25 sec<br>6 – Y/OFF 0.25 sec<br>7 – OFF<br>8 – G/OFF 0.5 sec<br>9 – R/OFF 0.5 sec<br>10 – Y/OFF 0.5 sec<br>11 – OFF<br>12 – G/OFF 1 sec<br>13 – R/OFF 1 sec<br>14 – Y/OFF 1 sec<br>15 – OFF<br>16 – G/OFF 2 sec<br>17 – R/OFF 2 sec<br>18 – Y/OFF 2 sec<br>19 – OFF<br>20 – G/R 0.25 sec<br>21 – G/R 0.5 sec<br>22 – G/R 1 sec<br>23 – G/R 2 sec<br>24 – G/Y 0.25 sec<br>25 – G/Y 0.5 sec<br>26 – G/Y 1 sec<br>27 – G/Y 2 sec<br>28 – R/Y 0.25 sec<br>29 – R/Y 0.5 sec<br>30 – R/Y 1 sec<br>31 – R/Y 2 sec | ||
|} | |} | ||
+ | </translate> |
Latest revision as of 15:27, 25 January 2022
Example of description in XML
1<item type="switch" addr="125:1" name="№1"/>
Device status (2 bytes)
Byte number | description | 0 | 0xFF – releasing the key 0xFD – holding the key 0хFC – keystroke |
1 | Time of holding the key (1 each = 128 msec) |
---|
Possible variants of setting the status of LED
byte | description |
---|---|
0 | 0 – R 1 – G 2 – Y 3 – OFF 4 – R/OFF 0.25 sec 5 – G/OFF 0.25 sec 6 – Y/OFF 0.25 sec 7 – OFF 8 – R/OFF 0.5 sec 9 – G/OFF 0.5 sec 10 – Y/OFF 0.5 sec 11 – OFF 12 – R/OFF 1 sec 13 – G/OFF 1 sec 14 – Y/OFF 1 sec 15 – OFF 16 – R/OFF 2 sec 17 – G/OFF 2 sec 18 – Y/OFF 2 sec 19 – OFF 20 – R/G 0.25 sec 21 – R/G 0.5 sec 22 – R/G 1 sec 23 – R/G 2 sec 24 – R/Y 0.25 sec 25 – R/Y 0.5 sec 26 – R/Y 1 sec 27 – R/Y 2 sec 28 – G/Y 0.25 sec 29 – G/Y 0.5 sec 30 – G/Y 1 sec 31 – G/Y 2 sec |
Possible variants of setting the status of inverted LED
byte | description |
---|---|
0 | 0 – G 1 – R 2 – Y 3 – OFF 4 – G/OFF 0.25 sec 5 – R/OFF 0.25 sec 6 – Y/OFF 0.25 sec 7 – OFF 8 – G/OFF 0.5 sec 9 – R/OFF 0.5 sec 10 – Y/OFF 0.5 sec 11 – OFF 12 – G/OFF 1 sec 13 – R/OFF 1 sec 14 – Y/OFF 1 sec 15 – OFF 16 – G/OFF 2 sec 17 – R/OFF 2 sec 18 – Y/OFF 2 sec 19 – OFF 20 – G/R 0.25 sec 21 – G/R 0.5 sec 22 – G/R 1 sec 23 – G/R 2 sec 24 – G/Y 0.25 sec 25 – G/Y 0.5 sec 26 – G/Y 1 sec 27 – G/Y 2 sec 28 – R/Y 0.25 sec 29 – R/Y 0.5 sec 30 – R/Y 1 sec 31 – R/Y 2 sec |