haut parleur radioweb
This commit is contained in:
parent
2bb1f8cae8
commit
0ae92c78e5
|
@ -12,5 +12,5 @@
|
|||
platform = espressif32
|
||||
board = esp32-devkitlipo
|
||||
framework = arduino
|
||||
monitor_speed = 9600
|
||||
monitor_speed = 115200
|
||||
lib_deps = esphome/ESP32-audioI2S@^2.0.7
|
||||
|
|
10
src/main.cpp
10
src/main.cpp
|
@ -49,22 +49,22 @@ void setup()
|
|||
Serial.println("IP address: ");
|
||||
Serial.println(WiFi.localIP());
|
||||
Serial.println("");
|
||||
Serial.print("coucou");
|
||||
Serial.print("connected");
|
||||
|
||||
// Connect MAX98357 I2S Amplifier Module
|
||||
audio.setPinout(I2S_BCLK, I2S_LRC, I2S_DOUT);
|
||||
Serial.print("coucou");
|
||||
|
||||
// Set thevolume (0-100)
|
||||
audio.setVolume(50);
|
||||
Serial.print("coucou");
|
||||
audio.connecttohost("https://s4-webradio.antenne.de/antenne");
|
||||
audio.setVolume(100);
|
||||
Serial.println("toto");
|
||||
audio.connecttohost("http://194.97.151.146/antenne");
|
||||
Serial.println("connexion antenne");
|
||||
}
|
||||
|
||||
void loop()
|
||||
|
||||
{
|
||||
//Run audio player
|
||||
Serial.print("coucou");
|
||||
audio.loop();
|
||||
}
|
Loading…
Reference in a new issue