mirror of https://github.com/arendst/Tasmota.git
Bitstream syntax alternates
parent
02cc04a7c2
commit
7cfc56e72a
|
@ -1,18 +1,24 @@
|
|||
[`IRSend`](Commands#irsend) `raw,<frequency>,<hdr_mrk>,<hdr_spc>,<bit_mrk>,<zer_spc>,<one_spc>,<bit_str>`
|
||||
There are two commands syntax formats for sending an IRsend RAW code:
|
||||
|
||||
Where
|
||||
1. [`IRSend`](Commands#irsend) `<frequency>,<rawdata1>,<rawdata2>,..,<rawdataN>`
|
||||
|
||||
`<frequency>` = carrier frequency (default 0 = 38kHz)<BR>
|
||||
`<hdr_mrk>` = header mark (ms)<BR>
|
||||
`<hdr_spc>` = header space (ms)<BR>
|
||||
`<bit_mrk>` = bit mark (ms)<BR>
|
||||
`<zer_spc>` = zero space (ms)<BR>
|
||||
`<one_spc>` = one space (ms)<BR>
|
||||
`<bit_str>` = bit stream data (stream of ones and zeroes)
|
||||
e.g., `IRsend 0,926,844,958,832,1798,868,902,848,900,870,900,852,908,918,958,794,934,874,928,1738,934,856,1764`
|
||||
|
||||
This command makes use of the output of the raw IR decoder from [ToniA/Raw-IR-decoder-for-Arduino](https://github.com/ToniA/Raw-IR-decoder-for-Arduino)
|
||||
2. [`IRSend`](Commands#irsend) `raw,<frequency>[,<header_mark>,<header_space>,<bit_mark>],<zero_space>[, [<one_multiple>] | <one_space>],<bit_stream>`
|
||||
|
||||
## Examples
|
||||
Where
|
||||
* `<frequency>` = carrier frequency (default 0 = 38kHz)
|
||||
* `<header_mark>` = header mark duration (ms) (optional for some protocols)
|
||||
* `<header_space>` = header space duration (ms) (optional for some protocols)
|
||||
* `<bit_mark>` = bit mark duration (ms) (optional for some protocols)
|
||||
* `<zero_space>` = zero space duration (ms)
|
||||
* `<one_multiple>` = May be used instead of the `<one_space>` parameter if the one space duration is an integral multiple of the zero space duration. May be omitted if the multiple is 2.
|
||||
* `<one_space>` = one space duration (ms) (used if its duration is not an integral multiple of `<zero_space>`
|
||||
* `<bit_stream>` = bit stream data (stream of ones and zeroes)
|
||||
|
||||
This command syntax version makes use of the output of the raw IR decoder from [ToniA/Raw-IR-decoder-for-Arduino](https://github.com/ToniA/Raw-IR-decoder-for-Arduino)
|
||||
|
||||
## Examples for bitstream command syntax
|
||||
|
||||
### _rawirdecode_ output:
|
||||
|
||||
|
|
Loading…
Reference in New Issue