diff --git a/IRSend-RAW-Encoding.md b/IRSend-RAW-Encoding.md index c003dae0..da44b34c 100644 --- a/IRSend-RAW-Encoding.md +++ b/IRSend-RAW-Encoding.md @@ -1,18 +1,24 @@ -[`IRSend`](Commands#irsend) `raw,,,,,,,` +There are two commands syntax formats for sending an IRsend RAW code: -Where +1. [`IRSend`](Commands#irsend) `,,,..,` -`` = carrier frequency (default 0 = 38kHz)
-`` = header mark (ms)
-`` = header space (ms)
-`` = bit mark (ms)
-`` = zero space (ms)
-`` = one space (ms)
-`` = 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,[,,,],[, [] | ],` -## Examples + Where + * `` = carrier frequency (default 0 = 38kHz) + * `` = header mark duration (ms) (optional for some protocols) + * `` = header space duration (ms) (optional for some protocols) + * `` = bit mark duration (ms) (optional for some protocols) + * `` = zero space duration (ms) + * `` = May be used instead of the `` 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 duration (ms) (used if its duration is not an integral multiple of `` + * `` = 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: