- India felől közelít egy 7550 mAh-s Redmi
- Samsung Galaxy S23 Ultra - non plus ultra
- Vivo X200 Pro - a kétszázát!
- Xiaomi 14T Pro - teljes a család?
- Okosóra és okoskiegészítő topik
- Motorola Edge 30 Neo - wake up, Jr...
- Hivatalos a OnePlus 13 startdátuma
- Samsung Galaxy Fit 3 - keveset, de jól
- Huawei Mate X6 - keleti oldal, nyugati oldal
- Samsung Galaxy A56 - megbízható középszerűség
Ú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
- Milyen belső merevlemezt vegyek?
- Subaru topik
- India felől közelít egy 7550 mAh-s Redmi
- Samsung Galaxy S23 Ultra - non plus ultra
- Milyen házat vegyek?
- PlayStation 5
- Házi barkács, gányolás, tákolás, megdöbbentő gépek!
- World of Tanks - MMO
- Vicces képek
- Sütés, főzés és konyhai praktikák
- További aktív témák...
- LG 27GR93U-B - 27" IPS - UHD 4K - 144Hz 1ms - NVIDIA G-Sync - FreeSync Premium - HDR 400
- Lenovo ThinkPad dokkolók: USB-C 40A9/ 40AY/ 40AS/ Thunderbolt 3 40AC/ Hybrid USB-C DisplayLink 40AF
- Kingmax 2x2GB DDR3 1333 RAM eladó
- BESZÁMÍTÁS! GIGABYTE H77-DS3H H77 chipset alaplap garanciával hibátlan működéssel
- BESZÁMÍTÁS! GIGABYTE AORUS ELITE Z790 i7 14700K 64GB DDR5 1TB SSD 7900XTX 24GB be quiet! SB802 1000W
Állásajánlatok
Cég: Promenade Publishing House Kft.
Város: Budapest
Cég: PC Trade Systems Kft.
Város: Szeged