MADE WORKING ON HARDWARE

This commit is contained in:
Patrick Haßel 2025-06-05 21:03:45 +02:00
parent bcf6001c55
commit 4333e35037
5 changed files with 18 additions and 8 deletions

View File

@ -1,4 +1,5 @@
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x6000,
phy_init, data, phy, 0xf000, 0x1000,
factory, app, factory, 0x10000, 4M
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xE000, 0x2000,
app0, app, factory, 0x10000, 0x3E0000,
coredump, data, coredump,0x3F0000,0x10000,
1 # Name, Type, SubType, Offset, Size, Flags # Name Type SubType Offset Size Flags
2 nvs, data, nvs, 0x9000, 0x6000, nvs data nvs 0x9000 0x5000
3 phy_init, data, phy, 0xf000, 0x1000, otadata data ota 0xE000 0x2000
4 factory, app, factory, 0x10000, 4M app0 app factory 0x10000 0x3E0000
5 coredump data coredump 0x3F0000 0x10000

View File

@ -2,10 +2,15 @@
platform = espressif32
board = esp32dev
framework = arduino
upload_port = /dev/ttyUSB0
upload_speed = 921600
monitor_port = /dev/ttyUSB0
monitor_speed = 115200
board_build.partitions = partitions-4m-factory.csv
lib_deps = https://github.com/pschatzmann/arduino-snapclient
https://github.com/pschatzmann/arduino-audio-tools
https://github.com/pschatzmann/arduino-audio-driver
https://github.com/pschatzmann/arduino-libopus
https://github.com/bblanchon/ArduinoJson
https://github.com/pschatzmann/arduino-libhelix
https://github.com/pschatzmann/arduino-libhelix
https://github.com/me-no-dev/ESPAsyncWebServer

View File

@ -42,7 +42,7 @@ void audioStop() {
opusDecoder.end();
icy.end();
file.close();
snap.end();
// snap.end(); // TODO
}
bool audioPlayInit(const Entry &entry) {

View File

@ -7,7 +7,7 @@
bool playlistRepeatOne = false;
bool playlistRepeatAll = false;
bool playlistRepeatAll = true;
bool playlistRandom = false;

View File

@ -19,12 +19,16 @@ void wifiLoop() {
wifiLastMillis = 0;
Serial.printf("WIFI connected: %s\n", WiFi.localIP().toString().c_str());
} else if (wifiLastMillis == 0 || millis() - wifiLastMillis > 10000) {
WiFi.disconnect();
yield();
if (wifiLastMillis != 0) {
Serial.printf("WIFI connect timeout!\n");
}
wifiLastMillis = max(1UL, millis());
Serial.printf("WIFI connecting: %s\n", WiFi.SSID().c_str());
WiFi.begin("HappyNet", "1Grausame!Sackratte7");
const auto ssid = "HappyNet";
Serial.printf("WIFI connecting: %s\n", ssid);
WiFi.begin(ssid, "1Grausame!Sackratte7");
yield();
} else {
// connecting
}