Git Product home page Git Product logo

ledmatrix's People

Contributors

domgarguilo avatar

Watchers

 avatar

ledmatrix's Issues

refactor into multiple files

The main file is getting too big. need to figure out some good categories or ways to break the code up into multiple files.

Try to reconnect to wifi periodically

Maybe every like 10 minutes or something we can try to reconnect to wifi if it initially failed. Might be a bit tricky if we want to put this into the async loop but should be feasible.

add ability to display other types of animations

Would be nice to be able to have other animation types displayed e.g. the xy test for fast LED is cool. Wouldn't be too hard to hardcore these (probably) but would be difficult to get working with the server.

Illuminate matrix to indicate whats going on in the code

The only way to tell whats going on in the code is to have the serial monitor up. It would be nice to have a way to tell what part of the script is running without that.

One idea is to have the matrix light up different colors depending on whats going on. For example, blue when connecting to wifi, red when wifi fails, orange when setting up SPIFFS, etc.

Have each animation in a separate json file

This is to reduce what's in memory at once. A whole file is read at once so if the file is too big, there is a cap to the number of animations we can have total. Either need to have each animation in its own file which is read just before it is displayed, or find a way to just read in part of a file at a time so only part of it is in memory.

Add boot up animation

When the system is powered on, would be nice to have a loading bar of sorts where a bit completes at each stage like connecting to wifi, pinging the server etc.

Determine how to handle file storage filling up

Could check if there is enough space to write new frame data files. There is probably enough space to write a bunch but if it eventually fills up, we dont want things crashing or only working with new code that deletes old files.

Simple solution:

  1. check if wifi successfully connects
  2. if it does, wipe all files and write new data files

Better but more complex solution:

  1. maybe on automatic update, check how much file storage is left
  2. if space is running out, delete all files that are not present in the metadata.

create method to get filename from frameID

Since the filenames have a max length that is less than the length of the UUIDs for the frame IDs, we need to truncate the IDs in order to use it for the filename. Create a method so we don't duplicate the code for read and write.

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.