GithubHelp home page GithubHelp logo

tonuino-esp32's People

Contributors

ckul avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tonuino-esp32's Issues

The EEPROM-methods can not work this way on an ESP32

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

Schaltung zur Kopfhörererkennung?

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

HTML/JS as plain files in the SPIFFS?

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

Schaltplan

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

Neuer Code vom 22.12.18 Fehler writeCard

Hallo,

super code vielen dank.
ich habe heute versucht die aktuelle version Hochzuladen, er zeigt ein Fehler variable or field writeCarddeclared void. bei der alten version hatte ich keine Probleme.

viele grüße

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.