Xinyuan-LilyGO / TTGO_TWatch_Library

MIT License
902 stars 289 forks source link

How to use the internal filesystem (LILYGO_WATCH_2020_V3) #193

Open lunard opened 1 year ago

lunard commented 1 year ago

Hello to all, I'm a bit confusing about the internal FileSystem. My project has the follow structure project-structure

The file config.h declares the libraries needed to write on the FS libraries

In the setup I initialize a new UtilityHelper class: init

In the class I try to init the FS, but without success:

UtilityHelper::UtilityHelper(TTGOClass *ttgo)
{
    this->ttgo = ttgo;

    if (!SPIFFS.begin())
    {
        Serial.println("SPIFFS initialisation failed!");
        // while (1)
        //     yield();
    }
}

Could you help me with an simple working example ? Thanks a lot !!!