3 #include "SX1280Driver.h"
4 #include "ESP8266WiFi.h"
9 uint8_t testdata
[8] = {0x80};
11 void ICACHE_RAM_ATTR
TXdoneCallback()
13 Serial
.println("TXdoneCallback1");
15 //Radio.TXnb(testdata, sizeof(testdata));
18 void ICACHE_RAM_ATTR
RXdoneCallback1()
20 Serial
.println("RXdoneCallback");
26 Serial
.println("Begin SX1280 testing...");
29 Radio
.Config(SX1280_LORA_BW_0800
, SX1280_LORA_SF6
, SX1280_LORA_CR_4_7
, 2420000000, 12, 8);
30 Radio
.TXdoneCallback
= &TXdoneCallback
;
31 //Radio.TXnb(testdata, sizeof(testdata));
32 Radio
.SetFrequencyReg(FHSSfreqs
[0]);
40 //Serial.println("about to TX");
41 //Radio.TXnb(testdata, 8);
43 // Serial.println("about to RX");
45 // delay(random(50,200));