Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a1c778d

Browse files
authoredJul 23, 2018
Merge pull request #1 from ricaun/patch-1
Add invertIQ
2 parents 5f62ed2 + fa69ca6 commit a1c778d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/LoRa.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#define REG_FREQ_ERROR_LSB 0x2a
3131
#define REG_RSSI_WIDEBAND 0x2c
3232
#define REG_DETECTION_OPTIMIZE 0x31
33+
#define REG_INVERTIQ 0x33 // (default 0x27 or 0x40)
3334
#define REG_DETECTION_THRESHOLD 0x37
3435
#define REG_SYNC_WORD 0x39
3536
#define REG_DIO_MAPPING_1 0x40
@@ -615,4 +616,9 @@ void LoRaClass::onDio0Rise()
615616
LoRa.handleDio0Rise();
616617
}
617618

619+
void LoRaClass::invertIQ(boolean invert)
620+
{
621+
writeRegister(REG_INVERTIQ, (uint8_t) (invert == false ? 0x27 : 0x40));
622+
}
623+
618624
LoRaClass LoRa;

0 commit comments

Comments
 (0)
Please sign in to comment.