ckul / tonuino-esp32 Goto Github PK
View Code? Open in Web Editor NEWTonUINO V2.0 Code für ESP32 mit Erweiterungen
License: GNU General Public License v3.0
TonUINO V2.0 Code für ESP32 mit Erweiterungen
License: GNU General Public License v3.0
It seems, that the EEPROM-methods are used the same way as on an AVR based Arduino.
This will not work in this way. I came upon that problem when using an AVR based sketch on an ESP32. The EEPROM class exists for compatibility purpose (exactly this usecase), but need a little extra effort to work propperly.
The compiler will not throw a warning or so, all seems to be all right, but it will not.
An EEPROM size must be defined:
#define EEPROM_SIZE 128 // Emulate 128 bytes of EEPROM
As far as i see this can be not more than one sector of an ESP32 FLASH which means 4kB.
The EEPROM must be initialized:
if (!EEPROM.begin(EEPROM_SIZE))
{
Serial.println(F("Failed to initialise EEPROM!"));
}
The EEPROM content must be "commited" to be persistent after using EEPROM.write() (whenever it is useful and not to exceed the maximum FLASH write cycles):
EEPROM.commit();
As far as i see, RAM memory is allocated as an EEPROM emulation. At initialization the FLASH area is read into that emulation memory. EEPROM manipulation is done within that RAM emulation memory. So if you don't commit, the EEPROM content isn't stored persistent.
Be aware, that EEPROM.length() will not work propperly with the standard initialization!
So i suppose, that the EEPROM content is lost after a suppy interruption with the current sketch...
Regards, Thorsten
Gibt es irgendwelche Hinweise zur Schaltung der Kopfhörererkennung?
Ich kann im Schaltplan nicht davon finden, auch nicht in den Forks...
Vielen Dank.
Gruß, Thorsten
Hi,
i was wondering if someone already tried to put the HTML and JS stuff into the SPIFFS of the ESP32 (e.g. with the upload tool at https://github.com/me-no-dev/arduino-esp32fs-plugin) instead of hardcode them into the binary. It would be a lot easier to change the website without recompile the whole stuff.
Another advantage would be to have the JS stuff locally and you don't need an internet connection when accessing the webinterface of the Jukebox.
Is the plain HTML accessible somewhere (so i don't need to remove the code stuff for further experiments)?
Thanks.
Regards, Thorsten
Verstehe ich das richtig, das der Code für einen ESP32 ist.
Ich habe ein M5 Stack core (geniales Teil !) und würde dort ein Projekt draus machen, um Tonuino auf dem M5 Core laufen zu lassen.
Leider finde ich für die ESP's keinen Schaltplan im Netz. Hast du einen zur Hand ?
VG
Hallo,
super code vielen dank.
ich habe heute versucht die aktuelle version Hochzuladen, er zeigt ein Fehler variable or field writeCard
declared void. bei der alten version hatte ich keine Probleme.
viele grüße
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.