First Test Commit

Dependencies:   sx126x

Revision:
2:ad71a4297b6d
Parent:
1:ce312fc7dd18
--- a/main.cpp	Tue May 22 14:27:12 2018 -0700
+++ b/main.cpp	Thu Aug 20 23:17:52 2020 +0000
@@ -69,7 +69,25 @@
 
     radio.start_rx(RX_TIMEOUT_CONTINUOUS);
     
-    for (;;) {     
+     for (;;) {  
+     
+//     PacketParams_t p;
+
+ //       p.lora.PreambleLengthHi = 0;
+  //      p.lora.PreambleLengthLo = 8;
+  //      p.lora.HeaderType = HEADER_TYPE_VARIABLE_LENGTH;
+  //      p.lora.PayloadLength = 0x40;    // max limit in rx
+  //      p.lora.CRCType = CRC_ON;
+  //      p.lora.InvertIQ = STANDARD_IQ;
+
+ //       radio.xfer(OPCODE_SET_PACKET_PARAMS, 6, p.buf);
+     
+    
+          
         radio.service();
+         uint8_t buf[2];
+        buf[0] = 0; // TX base address
+        buf[1] = 0; // RX base address
+      radio.xfer(OPCODE_SET_BUFFER_BASE_ADDR, 2, buf);
     }
 }