mirror of
https://github.com/ggerganov/ggwave.git
synced 2026-02-06 16:47:59 +08:00
minor
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user