ggwave : add mono-tone protocols

This commit is contained in:
Georgi Gerganov
2022-05-29 21:25:17 +03:00
parent fb2dcb3a37
commit 6888ca58f2
5 changed files with 89 additions and 39 deletions

View File

@@ -52,11 +52,12 @@ void loop() {
p.sampleRate = frequency;
p.sampleFormatInp = GGWAVE_SAMPLE_FORMAT_I16;
p.samplesPerFrame = 128;
p.payloadLength = 16;
p.payloadLength = 4;
p.operatingMode = GGWAVE_OPERATING_MODE_RX;
GGWave ggwave(p);
ggwave.setRxProtocols({
//{ GGWAVE_TX_PROTOCOL_MT_FASTEST, ggwave.getTxProtocol(GGWAVE_TX_PROTOCOL_MT_FASTEST) },
{ GGWAVE_TX_PROTOCOL_DT_FASTEST, ggwave.getTxProtocol(GGWAVE_TX_PROTOCOL_DT_FASTEST) },
});
Serial.println("Instance initialized");