Skip to content

Commit fe20102

Browse files
committed
Documentation inspired by Arduino-IRremote#1158
1 parent 3a443bb commit fe20102

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ Example:
219219
`0xCB340102` is binary `1100 1011 0011 0100 0000 0001 0000 0010`.<br/>
220220
`0x40802CD3` is binary `0100 0000 1000 0000 0010 1100 1101 0011`.<br/>
221221
If you **read the first binary sequence backwards** (right to left), you get the second sequence.
222+
You may use `bitreverseOneByte()` or `bitreverse32Bit()` for this.
222223

223224
<br/>
224225

examples/SendDemo/SendDemo.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ void loop() {
165165
/*
166166
* With Send sendNECMSB() you can send your old 32 bit codes.
167167
* To convert one into the other, you must reverse the byte positions and then reverse all positions of each byte.
168+
* Use bitreverse32Bit().
168169
* Example:
169170
* 0xCB340102 byte reverse -> 0x020134CB bit reverse-> 40802CD3
170171
*/

examples/UnitTest/UnitTest.ino

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ void loop() {
419419
/*
420420
* With Send sendNECMSB() you can send your old 32 bit codes.
421421
* To convert one into the other, you must reverse the byte positions and then reverse all positions of each byte.
422+
* Use bitreverse32Bit().
422423
* Example:
423424
* 0xCB340102 byte reverse -> 0x020134CB bit reverse-> 40802CD3
424425
*/

src/ir_JVC.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ bool IRrecv::decodeJVCMSB(decode_results *aResults) {
231231
/**
232232
* With Send sendJVCMSB() you can send your old 32 bit codes.
233233
* To convert one into the other, you must reverse the byte positions and then reverse all bit positions of each byte.
234+
* Use bitreverse32Bit().
234235
* Or write it as one binary string and reverse/mirror it.
235236
* Example:
236237
* 0xCB340102 byte reverse -> 02 01 34 CB bit reverse-> 40 80 2C D3.

src/ir_NEC.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,7 @@ bool IRrecv::decodeNECMSB(decode_results *aResults) {
401401
/**
402402
* With Send sendNECMSB() you can send your old 32 bit codes.
403403
* To convert one into the other, you must reverse the byte positions and then reverse all bit positions of each byte.
404+
* Use bitreverse32Bit().
404405
* Or write it as one binary string and reverse/mirror it.
405406
* Example:
406407
* 0xCB340102 byte reverse -> 02 01 34 CB bit reverse-> 40 80 2C D3.

0 commit comments

Comments
 (0)