PingPong-ClickButtonToWork
Dependents: Lora_SX1272_Coragem-dev-shared Lora_SX1272_serial
Revision 6:d7c7e731da3a, committed 2021-02-01
- Comitter:
- afzalsamira
- Date:
- Mon Feb 01 15:19:40 2021 +0000
- Parent:
- 4:f77a79f4239a
- Commit message:
- p2p Lora - click on the button of coragem1 to send a packet to the coragem2- during sending packet, ledes of coragem1 are turned on. Then ledes of Coragem 2 would be turned on upon receiving the packet
Changed in this revision
SX1272.cpp | Show annotated file Show diff for this revision Revisions of this file |
diff -r f77a79f4239a -r d7c7e731da3a SX1272.cpp --- a/SX1272.cpp Tue Sep 03 21:15:40 2019 +0000 +++ b/SX1272.cpp Mon Feb 01 15:19:40 2021 +0000 @@ -133,7 +133,7 @@ _bandwidth = BW_125; _codingRate = CR_5; _spreadingFactor = SF_7; - _channel = CH_12_900; + _channel = CH_07_900; _header = HEADER_ON; _CRC = CRC_OFF; _modem = FSK; @@ -194,7 +194,7 @@ } // Sets a Frequency in HF band - setChannel(CH_17_868); + setChannel(CH_07_900); // Launch Rx chain calibration for HF band writeRegister( REG_IMAGE_CAL, ( readRegister( REG_IMAGE_CAL ) & RF_IMAGECAL_IMAGECAL_MASK ) | RF_IMAGECAL_IMAGECAL_START ); @@ -529,6 +529,8 @@ */ void SX1272::writeRegister(byte address, byte data) { + // printf("Samira - writeRegister ( ) - ENTER..\n"); + //digitalWrite(SX1272_SS,LOW); ss=0; bitSet(address, 7); // Bit 7 set to read from registers @@ -3848,6 +3850,7 @@ if( length16 > MAX_PAYLOAD ) { + printf("XXXXXXXXXXXXXXXXXXXXX MAX_PAYLOAD XXXXXXXXXXXXXXXX\n"); _payloadlength = MAX_PAYLOAD; } else