Giter Site home page Giter Site logo

lidonglei1 / esp32-psramfs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tobozo/esp32-psramfs

0.0 0.0 0.0 161 KB

๐Ÿ ๐Ÿ’พ RamDisk for ESP32-Arduino using PsRam and fs::FS

License: MIT License

C++ 12.32% C 86.92% Makefile 0.49% CMake 0.28%

esp32-psramfs's Introduction

ESP32-PsRamFS

Coding Horror

ESP32-PsRamFS id a pseudo RamDisk library for Arduino-ESP32, with vfs compliance.

It provides a fs::FS style filesystem using the psram of an ESP32-Wrover or any ESP32 equipped with PSRam.

Some unit tests are available in the example folder, consider setting the debug output level to DEBUG to see what's happening.

Directory support is still partial but the API is now vfs compliant.

Usage

Only use this if your situation requires a filesystem, otherwise consider dropping the filesystem and use Streams instead with the excellent arduino-BufferStream library.

#include <PSRamFS.h>


void setup()
{

  Serial.begin(115200);

  if(!PSRamFS.begin()){
    Serial.println("PSRamFS Mount Failed");
    return;
  }

}

Hardware Requirements:

  • ESP32 with PSRam

Actually PSRam is optional, but strongly recommended.

For very low memory situations that still require some abstraction to access file data,

Tested on:

  • ESP32-Wroom
  • ESP32-Wrover
  • ESP32-S2
  • ESP32-C3

Known issues:

  • Broken support for file::position()
  • Unimplemented fs::open(dirname); (fake support)
  • Partial support for file::isDirectory();
  • No support for dir::openNextFile()

Credits:

esp32-psramfs's People

Contributors

lbernstone avatar tobozo avatar

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.