GithubHelp home page GithubHelp logo

unclerojelio / spiral_rgb_lamp Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 10 KB

This project is a desk lamp retrofitted with a string of RGB LEDs wrapped in a spiral pattern around a central core. The WS2812b string of LEDs is driven by an ESP32 and the code developed using PlatformIO and the FastLED library.

C 73.85% C++ 26.15%
blinkenlights esp32 platformio ardiuno lamp ws2821b rgb led led-strips nodemcu fastled-library

spiral_rgb_lamp's People

Contributors

unclerojelio avatar

Watchers

 avatar

spiral_rgb_lamp's Issues

Add DrawTwinkleTails()

Affected file: twinkle.h

Implementation: Loop through the leds up to NUM_LEDS - 2 and copy led[i] to led[i+1].

Setting to try: bump max_brightness to 255 and fadeAmt to 64.

Fireflies animation

Create a new animation that is reminiscent of fireflies.

  1. Choose a random position within the strip.
  2. Choose a random color from a table.
  3. Create an object with the following properties:
    • Color
    • Age
  4. Insert the new pixel into an array at it's position.
  5. Draw the pixel at the position and increment it's age.
  6. For each subsequent frame draw a new pixel ahead of the original pixel until max_age is reached.
  7. Fade all pixels each frame.

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.