Difference between revisions of "Switch"

From Larnitech wiki page
Jump to navigation Jump to search
Line 1: Line 1:
 +
<languages/>
 +
<translate>
 
===Example of description in XML===
 
===Example of description in XML===
  
Line 29: Line 31:
 
|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>

Revision as of 15:25, 25 January 2022

Other languages:
English • ‎русский

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