Documentation inspired by #1158
This commit is contained in:
parent
3a443bbac0
commit
fe2010270e
|
@ -219,6 +219,7 @@ Example:
|
|||
`0xCB340102` is binary `1100 1011 0011 0100 0000 0001 0000 0010`.<br/>
|
||||
`0x40802CD3` is binary `0100 0000 1000 0000 0010 1100 1101 0011`.<br/>
|
||||
If you **read the first binary sequence backwards** (right to left), you get the second sequence.
|
||||
You may use `bitreverseOneByte()` or `bitreverse32Bit()` for this.
|
||||
|
||||
<br/>
|
||||
|
||||
|
|
|
@ -165,6 +165,7 @@ void loop() {
|
|||
/*
|
||||
* With Send sendNECMSB() you can send your old 32 bit codes.
|
||||
* To convert one into the other, you must reverse the byte positions and then reverse all positions of each byte.
|
||||
* Use bitreverse32Bit().
|
||||
* Example:
|
||||
* 0xCB340102 byte reverse -> 0x020134CB bit reverse-> 40802CD3
|
||||
*/
|
||||
|
|
|
@ -419,6 +419,7 @@ void loop() {
|
|||
/*
|
||||
* With Send sendNECMSB() you can send your old 32 bit codes.
|
||||
* To convert one into the other, you must reverse the byte positions and then reverse all positions of each byte.
|
||||
* Use bitreverse32Bit().
|
||||
* Example:
|
||||
* 0xCB340102 byte reverse -> 0x020134CB bit reverse-> 40802CD3
|
||||
*/
|
||||
|
|
|
@ -231,6 +231,7 @@ bool IRrecv::decodeJVCMSB(decode_results *aResults) {
|
|||
/**
|
||||
* With Send sendJVCMSB() you can send your old 32 bit codes.
|
||||
* To convert one into the other, you must reverse the byte positions and then reverse all bit positions of each byte.
|
||||
* Use bitreverse32Bit().
|
||||
* Or write it as one binary string and reverse/mirror it.
|
||||
* Example:
|
||||
* 0xCB340102 byte reverse -> 02 01 34 CB bit reverse-> 40 80 2C D3.
|
||||
|
|
|
@ -401,6 +401,7 @@ bool IRrecv::decodeNECMSB(decode_results *aResults) {
|
|||
/**
|
||||
* With Send sendNECMSB() you can send your old 32 bit codes.
|
||||
* To convert one into the other, you must reverse the byte positions and then reverse all bit positions of each byte.
|
||||
* Use bitreverse32Bit().
|
||||
* Or write it as one binary string and reverse/mirror it.
|
||||
* Example:
|
||||
* 0xCB340102 byte reverse -> 02 01 34 CB bit reverse-> 40 80 2C D3.
|
||||
|
|
Loading…
Reference in New Issue