Skip to content

Commit 105acfd

Browse files
cambiar
1 parent 181384c commit 105acfd

File tree

5 files changed

+9
-178
lines changed

5 files changed

+9
-178
lines changed

examples/SayNumber/SayNumber.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
#include <Arduino.h>
22
#include <ESP8266SAM_ES.h>
3-
#include "AudioOutputI2SNoDAC.h"
3+
#include <AudioOutputInternalDAC.h>
44
#define MAX_LONG 20
55
#define MILLON 1000000
66
#define MIL 1000
77
#define CIEN 100
88
#define DIEZ 10
9-
AudioOutputI2SNoDAC *out = NULL;
9+
AudioOutputInternalDAC *out = NULL;
1010
char linea[60];
1111
int pos = 0;
1212
String numero;
1313
// Initial setup
1414
void setup() {
1515
Serial.begin(115200);
16-
out = new AudioOutputI2SNoDAC(); // with ESP8266 use pin GPIO03(RX) but with ESP32 use pin GPIO22
16+
out = new AudioOutputInternalDAC(); // ESP32 pin 25
1717
out->begin();
1818
}
1919
// Main loop

examples/Speak/Speak.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
#include <Arduino.h>
22
#include <ESP8266SAM_ES.h>
3-
#include <AudioOutputI2S.h>
3+
#include <AudioOutputInternalDAC.h>
44

5-
AudioOutputI2S *out = NULL;
5+
AudioOutputInternalDAC *out = NULL;
66

77
void setup()
88
{
9-
out = new AudioOutputI2S();
9+
out = new AudioOutputInternalDAC(); // ESP32 pin 25
1010
out->begin();
1111
}
1212

examples/SpeakNoDac/SpeakNoDac.ino

Lines changed: 0 additions & 20 deletions
This file was deleted.

examples/SpeakSerial/SpeakSerial.ino

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
#include <Arduino.h>
22
#include <ESP8266SAM_ES.h>
3-
#include <AudioOutputI2S.h>
3+
#include <AudioOutputInternalDAC.h>
44

5-
AudioOutputI2S *out = NULL;
5+
AudioOutputInternalDAC *out = NULL;
66

77
char linea[60];
88
int pos = 0;
99
int punt_linea = 0;
1010

1111
void setup() {
1212
Serial.begin(115200);
13-
out = new AudioOutputI2S(0, 1); // to use the internal DAC channel 1 (pin25) on ESP32
13+
out = new AudioOutputInternalDAC(); // ESP32 pin 25
1414
out->begin();
1515
}
1616

examples/remoteSAM/remoteSAM.ino

Lines changed: 0 additions & 149 deletions
This file was deleted.

0 commit comments

Comments
 (0)