Giter Site home page Giter Site logo

ledeffect's Introduction

LEDEffect

A simple library for different LED effects

Installation

Arduino

  1. Download the library (click "Clone or download" then click the "Download ZIP" button) as a .zip.
  2. In the Arduino IDE's select "Sketch" then "Include Library" then "Add .ZIP Library" and select the downloaded .zip.

SparkCore

  1. Add LEDEffect.cpp and LEDEffect.h to your project.

Usage

#include <LEDEffect.h>

LEDEffect led1(13); // Use onboard LED
void setup()  {
    led1.blink(250);    // Set the LED to blink
}
void loop()  {
    led1.update();  // Call update as often as possible for smooth animation
}

For more examples reference the "Library/LEDEffects/examples" folder

Available LED Effects

  • Off - Turns the LED off
  • On - Turns the LED on
  • Breath - Makes the LED "breath". The breathing rate can be specified for faster or slower breathing
  • Fade Up - Makes the LED fade from dark to bright and then restart at dark. The speed of the animation can be controlled
  • Fade Down - Makes the LED fade from bright to dark and then restart at bright. The speed of the animation can be controlled
  • Blink - Makes the LED blink. The blinking rate can be controlled.
  • Dim - Controls the LED's brightness

ledeffect's People

Contributors

harrisonhjones avatar per1234 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.