Edzelf / Esp-radio

Internet radio based on Esp8266 and VS1053.
MIT License
622 stars 200 forks source link

Get error while compileing #170

Closed diwo13 closed 5 years ago

diwo13 commented 5 years ago

Hi

i try to compile but i get following error. I don't know what to do. Can anyone please help me?

/home/USER/Arduino/libraries/Adafruit_Circuit_Playground/Adafruit_Circuit_Playground.h:100:3: error: 'Adafruit_CPlay_FreeTouch' does not name a type Adafruit_CPlay_FreeTouch cap[7]; ///< the array of capacitive touch sensors

I think the problem starts here. But i don't know what to do.

`

ifdef AVR // Circuit Playground 'classic'

CPlay_CapacitiveSensor cap[8]; ///< the array of capacitive touch sensors

else

Adafruit_CPlay_FreeTouch cap[7]; ///< the array of capacitive touch sensors IRrecvPCI irReceiver; ///< the IR receiver object IRdecode irDecoder; ///< the IR decoder object IRsend irSend; ///< the IR send object

endif

`

I use arduino IDE 1.8.9 but I tried 1.8.5 else.

The needed libries i downloaded by from links in the head of the file ESP_RADIO.ino

Thanks for help If you need additional informations i try give this.

Edzelf commented 5 years ago

Did you select the right board? It looks like an error while compiling for Atmega instead of ESP8266.

diwo13 commented 5 years ago

Hi Edzelf

thank you for your comment.

I use a WEMOS D1 mini. I can't select this board, but I can (and did) select a LOLIN(WEMOS) D1 R2 & mini. I also tried to select Generic ESP8266 Module.

The problem stays.

Edzelf commented 5 years ago

Could you try to remove the adafruit-circuit-playground library?

diwo13 commented 5 years ago

I remove the complete Adafruit_Circuit_Playground folder from the libraries folder. Now i got this message

`Esp_radio:1:41: error: Adafruit_Circuit_Playground.h: No such file or directory

include `

Edzelf commented 5 years ago

But there is no include for this library in my sketch. Are you sure you have the right sketch, the one with the 3129 lines?

diwo13 commented 5 years ago

My sketch is 3132 lines :-) and the first two lines are:

#include Adafruit_CircuitPlayground
#include Adafruit_Circuit_Playground

I commend them out

//#include Adafruit_CircuitPlayground
//#include Adafruit_Circuit_Playground

now there are NO error message while compiling and I can load the sketch

Thank you for your help