useless
This commit is contained in:
parent
0ae92c78e5
commit
cfd66549ed
Binary file not shown.
|
@ -13,4 +13,3 @@ platform = espressif32
|
||||||
board = esp32-devkitlipo
|
board = esp32-devkitlipo
|
||||||
framework = arduino
|
framework = arduino
|
||||||
monitor_speed = 115200
|
monitor_speed = 115200
|
||||||
lib_deps = esphome/ESP32-audioI2S@^2.0.7
|
|
||||||
|
|
|
@ -21,6 +21,10 @@ https://dronebotworkshop.com
|
||||||
|
|
||||||
// Create audio object
|
// Create audio object
|
||||||
Audio audio;
|
Audio audio;
|
||||||
|
const int potPin = 33;
|
||||||
|
float potvalue=0.00;
|
||||||
|
float volume;
|
||||||
|
|
||||||
|
|
||||||
// Wifi Credentials
|
// Wifi Credentials
|
||||||
String ssid = "cohabit";
|
String ssid = "cohabit";
|
||||||
|
@ -66,5 +70,10 @@ void loop()
|
||||||
|
|
||||||
{
|
{
|
||||||
//Run audio player
|
//Run audio player
|
||||||
|
potvalue=analogRead(potPin);
|
||||||
|
volume = potvalue / 40.95;
|
||||||
|
int(volume);
|
||||||
|
//Serial.println("%d",volume);
|
||||||
|
audio.setVolume(volume);
|
||||||
audio.loop();
|
audio.loop();
|
||||||
}
|
}
|
Loading…
Reference in a new issue