- Okosóra és okoskiegészítő topik
- Három Redmi 15 érkezett a lengyel piacra
- Vivo X200 Pro - a kétszázát!
- Android alkalmazások - szoftver kibeszélő topik
- Samsung Galaxy S25 - végre van kicsi!
- One mobilszolgáltatások
- Samsung Galaxy Z Flip5 - ami kint, az van bent
- Samsung Galaxy A56 - megbízható középszerűség
- Hatalmas kedvezménnyel nyit az Ulefone új csúcsmodellje
- Magisk
Hirdetés
Új hozzászólás Aktív témák
-
slowie
csendes tag
Igen.
Letöröltem mindent (könyvtárakat is), aztán újraraktam 1.8.18 verzió mellé.
Sajnos az ESP32 2.0.17 verzió is ugyanazokat dobta.
Átraktam 2.0.3-ra, mostmár végre másba kötött bele. :'DYoRadio.ino-n nem változtattam, úgy van, ahogy letöltöttem:
/* ============================================================================================================
* ёRadio
* ============================================================================================================
* Web-radio based on
* ESP32-audioI2S https://github.com/schreibfaul1/ESP32-audioI2S
* or/and
* ESP32-vs1053_ext https://github.com/schreibfaul1/ESP32-vs1053_ext
* libraries
* ============================================================================================================
* Project home https://github.com/e2002/yoradio
* Wiki https://github.com/e2002/yoradio/wiki
* Описание на 4PDA https://4pda.to/forum/index.php?s=&showtopic=1010378&view=findpost&p=112992611
* Как это прошить? https://4pda.to/forum/index.php?act=findpost&pid=112992611&anchor=Spoil-112992611-2
* ============================================================================================================
* Here goes!
* ============================================================================================================
*/
#include "Arduino.h"
#include "src/core/options.h"
#include "src/core/config.h"
#include "src/core/telnet.h"
#include "src/core/player.h"
#include "src/core/display.h"
#include "src/core/network.h"
#include "src/core/netserver.h"
#include "src/core/controls.h"
#include "src/core/mqtt.h"
#include "src/core/optionschecker.h"
#include "src/audioVS1053/audioVS1053Ex.h"
#include "src/audioVS1053/vs1053b-patches-flac.h"
#include "src/LiquidCrystalI2C/LiquidCrystalI2CEx.h"
#include "src/OneButton/OneButton.h"
#include "src/VS1053/VS1053.h"
extern __attribute__((weak)) void yoradio_on_setup();
void setup() {
Serial.begin(115200);
if(LED_BUILTIN!=255) pinMode(LED_BUILTIN, OUTPUT);
if (yoradio_on_setup) yoradio_on_setup();
config.init();
display.init();
player.init();
network.begin();
if (Network.status != CONNECTED && Network.status!=SDREADY) {
netserver.begin();
initControls();
display.putRequest(DSP_START);
while(!display.ready()) delay(10);
return;
}
if(SDC_CS!=255) {
display.putRequest(WAITFORSD, 0);
Serial.print("##[BOOT]#\tSD search\t");
}
config.initPlaylistMode();
netserver.begin();
telnet.begin();
initControls();
display.putRequest(DSP_START);
while(!display.ready()) delay(10);
#ifdef MQTT_ROOT_TOPIC
mqttInit();
#endif
if (config.getMode()==PM_SDCARD) player.initHeaders(config.station.url);
player.lockOutput=false;
if (config.store.smartstart == 1) player.sendCommand({PR_PLAY, config.store.lastStation});
}
void loop() {
telnet.loop();
if (Network.status == CONNECTED || Network.status==SDREADY) {
player.loop();
//loopControls();
}
loopControls();
netserver.loop();
}
#include "src/core/audiohandlers.h"A myoptions.h jelenleg így néz ki:
#ifndef myoptions_h
#define myoptions_h
//--- LCD ---
#define DSP_MODEL DSP_1602I2C
#define I2C_SDA 21
#define I2C_SCL 22
#define I2C_RST -1
//--- VS1053 Audio ---
#define VS_HSPI false
#define I2S_DOUT 255
#define VS1053_CS 27
#define VS1053_DCS 25
#define VS1053_DREQ 26
#define VS1053_RST -1
//--- Gombok ---
#define BTN_LEFT 12
#define BTN_CENTER 14
#define BTN_RIGHT 13
#endifMost ez a hibalistám:
Arduino: 1.8.18 (Windows 10), Board: "ESP32 Dev Module, Enabled, Minimal SPIFFS (1.9MB APP with OTA/190KB SPIFFS), 240MHz (WiFi/BT), QIO, 80MHz, 4MB (32Mb), 921600, Core 1, Core 1, None"
In file included from C:\Users\kbpho\Documents\Arduino\yoRadio\yoRadio.ino:33:
C:\Users\kbpho\Documents\Arduino\yoRadio\src\VS1053\VS1053.h: In member function 'void VS1053::save_our_spi()':
C:\Users\kbpho\Documents\Arduino\yoRadio\src\VS1053\VS1053.h:68:15: error: 'SPSR' was not declared in this scope
my_SPSR = SPSR;
^~~~
C:\Users\kbpho\Documents\Arduino\yoRadio\src\VS1053\VS1053.h:68:15: note: suggested alternative: 'SPI'
my_SPSR = SPSR;
^~~~
SPI
C:\Users\kbpho\Documents\Arduino\yoRadio\src\VS1053\VS1053.h:69:15: error: 'SPCR' was not declared in this scope
my_SPCR = SPCR;
^~~~
C:\Users\kbpho\Documents\Arduino\yoRadio\src\VS1053\VS1053.h:69:15: note: suggested alternative: 'SPI'
my_SPCR = SPCR;
^~~~
SPI
C:\Users\kbpho\Documents\Arduino\yoRadio\src\VS1053\VS1053.h: In member function 'void VS1053::set_our_spi()':
C:\Users\kbpho\Documents\Arduino\yoRadio\src\VS1053\VS1053.h:73:5: error: 'SPSR' was not declared in this scope
SPSR = my_SPSR;
^~~~
C:\Users\kbpho\Documents\Arduino\yoRadio\src\VS1053\VS1053.h:73:5: note: suggested alternative: 'SPI'
SPSR = my_SPSR;
^~~~
SPI
C:\Users\kbpho\Documents\Arduino\yoRadio\src\VS1053\VS1053.h:74:5: error: 'SPCR' was not declared in this scope
SPCR = my_SPCR;
^~~~
C:\Users\kbpho\Documents\Arduino\yoRadio\src\VS1053\VS1053.h:74:5: note: suggested alternative: 'SPI'
SPCR = my_SPCR;
^~~~
SPI
C:\Users\kbpho\Documents\Arduino\yoRadio\yoRadio.ino: In function 'void setup()':
yoRadio:45:14: error: expected primary-expression before '.' token
if (Network.status != CONNECTED && Network.status!=SDREADY) {
^
yoRadio:45:45: error: expected primary-expression before '.' token
if (Network.status != CONNECTED && Network.status!=SDREADY) {
^
C:\Users\kbpho\Documents\Arduino\yoRadio\yoRadio.ino: In function 'void loop()':
yoRadio:72:14: error: expected primary-expression before '.' token
if (Network.status == CONNECTED || Network.status==SDREADY) {
^
yoRadio:72:45: error: expected primary-expression before '.' token
if (Network.status == CONNECTED || Network.status==SDREADY) {
^
Multiple libraries were found for "SD.h"
Used: C:\Users\kbpho\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\SD
Not used: C:\Program Files (x86)\Arduino\libraries\SD
Multiple libraries were found for "WiFi.h"
Used: C:\Users\kbpho\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.3\libraries\WiFi
Not used: C:\Program Files (x86)\Arduino\libraries\WiFi
exit status 1
expected primary-expression before '.' token
Új hozzászólás Aktív témák
- Logitech G935
- Creative Sound Blaster Live! 5.1-es digitális PCI hangkártya
- Rock Shox Recon Silver Air gyorszáras villa eladó (29-es)!
- ÚJ Nvidia RTX 5060/TI 8-16Gb GDDR7 DLSS4.0 Ryzen 7 5800X 16x4.7Ghz/32GB/512Gb/1TB M SSD/2ÉV gamer PC
- ÚJ Nvidia RTX 3080 10Gb GDDR6x Ryzen 7 5800X 16x4.7Ghz/32GB/512Gb Nvme SSD/2ÉV gamer PC
- Telefon felvásárlás!! iPhone 12 Mini/iPhone 12/iPhone 12 Pro/iPhone 12 Pro Max
- Bomba ár! HP EliteBook 830 G6 - i7-8G I 16GB I 512SSD I 13,3" FHD I HDMI I Cam I W11 I Gari!
- Kaspersky, BitDefender, Avast és egyéb vírusírtó licencek a legolcsóbban, egyenesen a gyártóktól!
- Új Dell 14 Inspiron 5435 FHD+ Ryzen7 7730U 4.5Ghz 16GB 512GB SSD Radeon RX Vega 8 Win11 Garancia
- HIBÁTLAN iPhone 13 512GB Starlight -1 ÉV GARANCIA - Kártyafüggetlen, MS3078, 100% Akkumulátor
Állásajánlatok
Cég: FOTC
Város: Budapest