This commit is contained in:
Georgi Gerganov
2022-06-05 20:10:38 +03:00
parent 2bc3c60d03
commit 14026a289e
2 changed files with 3 additions and 8 deletions

View File

@@ -2,10 +2,7 @@
#include <PDM.h>
const int kPinLed0 = 13;
const int kPinSpeaker = 10;
const int kPinButton0 = 2;
const int kPinButton1 = 4;
using TSample = int16_t;
static const size_t kSampleSize_bytes = sizeof(TSample);
@@ -62,10 +59,7 @@ void setup() {
Serial.begin(57600);
while (!Serial);
pinMode(kPinLed0, OUTPUT);
pinMode(kPinSpeaker, OUTPUT);
pinMode(kPinButton0, INPUT);
pinMode(kPinButton1, INPUT);
// Configure the data receive callback
PDM.onReceive(onPDMdata);

View File

@@ -437,8 +437,9 @@ public:
// - GGWave::Protocols::tx()
//
// For optimal performance and minimum memory usage, make sure to enable only the
// Rx and Tx protocols that you need. For example, using a single protocol for Tx
// is achieved like this:
// Rx and Tx protocols that you need.
//
// For example, using a single protocol for Tx is achieved like this:
//
// Parameters parameters;
// parameters.operatingMode = GGWAVE_OPERATING_MODE_TX;