You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using LILYGO T3_V1.6.1. Pinout is same for DIO1, DIO2.
Checked pins using multimeter, 20 Ohms for each ESP GPIO - sx1278 DIO.
Tried to use GPIO12, GPIO25 for DIO2, no luck.
Also tried to set GPIO pins HIGH before transmitting.
To Reproduce
#include<RadioLib.h>
#include<SPI.h>constuint8_t LORA_MOSI = 27;
constuint8_t LORA_MISO = 19;
constuint8_t LORA_SCLK = 5;
constuint8_t LORA_CS = 18;
constuint8_t LORA_DIO0 = 26;
constuint8_t LORA_DIO1 = 33;
constuint8_t LORA_DIO2 = 32;
constuint8_t LORA_RST = 23;
SX1278 radio = new Module(LORA_CS, LORA_DIO0, LORA_RST, LORA_DIO1);
AFSKClient audio(&radio, LORA_DIO2);
RTTYClient rtty(&audio);
float TXfreq = 434.0;
voidsetup() {
Serial.begin(115200);
SPI.begin(LORA_SCLK, LORA_MISO, LORA_MOSI);
int state = radio.beginFSK();
if (state == RADIOLIB_ERR_NONE) {
Serial.println(F("success!"));
} else {
Serial.print(F("failed, code "));
Serial.println(state);
while (true)
;
}
state = rtty.begin(434.0, 170, 45);
if (state == RADIOLIB_ERR_NONE) {
Serial.println(F("success!"));
} else {
Serial.print(F("failed, code "));
Serial.println(state);
while (true)
;
}
rtty.idle();
delay(500);
rtty.println("Test test test");
rtty.standby();
// for (int i = 0; i < 10; ++i) {// audio.tone(1000+i * 1000);// delay(100);// }// audio.noTone();
}
voidloop() {}
Expected behavior
Frequency change instead of carrier.
Screenshots
Additional info (please complete):
MCU: ESP32
Wireless module type: SX1278
Arduino IDE version: 2.3.2
Library version: 6.6.0
The text was updated successfully, but these errors were encountered:
I was able to replicate this issue on a Lilygo T-Beam. The root cause was a breaking change in ESP_IDF > 5.0.0, that chagned the API of the LEDC component which is used to emulate tone(). It is fixed in the comit mentioned above, thanks for reporting!
Describe the bug
AFSK not working. Close to #190
Using LILYGO T3_V1.6.1. Pinout is same for DIO1, DIO2.
Checked pins using multimeter, 20 Ohms for each ESP GPIO - sx1278 DIO.
Tried to use GPIO12, GPIO25 for DIO2, no luck.
Also tried to set GPIO pins HIGH before transmitting.
To Reproduce
Expected behavior
Frequency change instead of carrier.
Screenshots
Additional info (please complete):
The text was updated successfully, but these errors were encountered: