Git Product home page Git Product logo

led-playground's Introduction

#Piggy's LED Playground

A simple web integrated suite of apps that allow a WS2812 strip to be controlled. ##Features

  • REST API (useful for IFTTT etc)
  • Responsive web app
  • Multiple Animations with different options
  • Token protection

##Animations

  • All animations in Loop-Mode or fixed number of cycles
  • KnightRider:
    • Video
    • Options: Length of trail (for fadeout), Speed, Cycles, Color
  • ColorWipe:
    • Video
    • Options: Speed, Cycles
  • RainbowFade:
    • Video
    • Options: Speed, Cycles, Brightness
  • RainbowPattern:
    • Video
    • Options: Speed, Cycles, Density (Number of Rainbows per strip), Brightness
  • SparkleColors:
    • Video
    • Options: Density, Speed, Cycles, Color or Random Colors

##ToDo / Possibilities

  • Optimize Code of Spark Core. Enough places for better memory usage, faster animation calculations
  • Make API smarter (e.g. Log all animations to database for 'most used animations settings' or stats for each caller by different tokens)
  • More animations:
    • MorseCode, input a text and show a ticker with Morse code
    • HeartBeat/Breath, animate a single color by brightness to look like heartbeating or breathing
    • ColorFade, fade between multiple colors (instead through the complete rainbow)
  • Integrate services (e.g. with IFTTT or other APIs), "new mail, cyan Knightrider", "facebook notification, blue blinking", etc
  • Combine with an alarmclock for visual alarm

##Requirements

  • Spark Core (Spark Photon not tested)
  • WS2812B LED Strip (other Adafruit NeoPixel-Compatible LEDs might work)
  • Web server with PHP >= 5.3.0

##Configurations / Installation

  • Spark Core:
    • Pin, LED Count, LED Type
  • PHP:
    • Spark Device ID and Spark Access Token (inside function sendPost())
    • Token for API (inside function setDefaultConditions())

##Acknowledgement / Used Libraries

led-playground's People

Contributors

fabiopigi avatar

Stargazers

Rainboy avatar SaadCaffeine avatar Patrick Balsiger avatar  avatar Eric avatar Jacob Gabriel avatar Evangelos (Vagelis) Fragkos avatar Amit Burstein avatar

Watchers

 avatar Evangelos (Vagelis) Fragkos avatar Eric avatar

Forkers

fiveghz inda88

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.