tierneytim / btAudio

Bluetooth Audio for Arduino
206 stars 30 forks source link

PlatformIO IDE error #1

Closed modi12jin closed 4 years ago

modi12jin commented 4 years ago

截图录屏_code_20200823194650

#include <Arduino.h>
#include <btAudio.h>

#define bck 26
#define ws 27
#define dout 25

// Sets the name of the audio device
btAudio audio = btAudio("ESP_Speaker");

void setup() {

 // streams audio data to the ESP32   
 audio.begin();

 //  outputs the received data to an I2S DAC https://www.adafruit.com/product/3678
 audio.I2S(bck, dout, ws);
}

void loop() {

}

fatal error: WebServer.h: No such file or directory

How to solve the error?

tierneytim commented 4 years ago

That is odd. WebServer.h is a library that comes with the Arduino ESP32-core. Have you got this installed?

If you have the library installed can you try running the example through the Arduino IDE? I can then check if this is an issue with platform.io running my code or a more general issue.

modi12jin commented 4 years ago

截图录屏_code_20200823203930

I copied the WebServer.cpp file to the src directory to solve this problem

image

/home/jin/.platformio/lib/WebServer-esp32/src
tierneytim commented 4 years ago

Fantastic, glad this worked.