Git Product home page Git Product logo

Comments (1)

Makuna avatar Makuna commented on August 16, 2024

The NeoPixelAnimator was updated to support timescale. This allows it to use a different base time for each animation. So the time value passed to the animation is based on the value/flag passed to the animator class at construction.

NeoPixelAnimator(NeoPixelBus* bus, uint16_t timeScale = NEO_MILLISECONDS);

instantiates a NeoPixelAnimator object, associates it to the given bus, and defines the time scale used by the given value.

NEO_MILLISECONDS        1    // ~65 seconds max duration, ms updates
NEO_CENTISECONDS       10    // ~10.9 minutes max duration, centisecond updates
NEO_DECISECONDS       100    // ~1.8 hours max duration, decisecond updates
NEO_SECONDS          1000    // ~18.2 hours max duration, second updates
NEO_DECASECONDS     10000    // ~7.5 days, 10 second updates

so the time value in the following is based on the above

void StartAnimation(uint16_t n, uint16_t time, AnimUpdateCallback animUpdate)

from neopixelbus.

Related Issues (20)

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.