GithubHelp home page GithubHelp logo

adafruit / lpd8806 Goto Github PK

View Code? Open in Web Editor NEW
211.0 42.0 111.0 217 KB

Arduino library for LED strips and pixels using LPD8806 (and probably LPD8803/LPD8809)

Home Page: http://www.adafruit.com/products/306

C++ 100.00%
arduino-library arduino library pixel led lpd8806

lpd8806's Introduction

Arduino library for LPD8806 Build StatusDocumentation

This Library was written for the LPD8806 PWM LED driver chips, strips and pixels. But the LPD8803/LPD8809 will probably work too.

Where to Buy?

Pick some up at Adafruit Industries

lpd8806's People

Contributors

driverblock avatar edelooff avatar evaherrada avatar incanusuk avatar ladyada avatar paintyourdragon avatar siddacious avatar tdicola avatar tyeth avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lpd8806's Issues

LEDBeltKit_alt compile errors with Teensy3

I'm getting these compile errors when trying to upload the LEDBeltKit_alt sketch to Teensy 3.

FWIW - The strandtest and LEDBeltKit sketches works normally.


LEDbeltKit_alt.pde: In function 'void callback()':
LEDbeltKit_alt.pde:162:62: error: call of overloaded 'gamma(int)' is ambiguous
LEDbeltKit_alt.pde:162:62: note: candidates are:
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/teensy/cores/teensy3/WProgram.h:6:0,
from /Applications/Arduino.app/Contents/Resources/Java/hardware/teensy/cores/teensy3/Arduino.h:1,
from /Applications/Arduino.app/Contents/Resources/Java/libraries/SPI/SPI.h:15,
from LEDbeltKit_alt.pde:20:
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/include-fixed/math.h:287:15: note: double gamma(double)
LEDbeltKit_alt.pde:82:6: note: byte gamma(byte)
LEDbeltKit_alt.pde:163:62: error: call of overloaded 'gamma(int)' is ambiguous
LEDbeltKit_alt.pde:163:62: note: candidates are:
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/teensy/cores/teensy3/WProgram.h:6:0,
from /Applications/Arduino.app/Contents/Resources/Java/hardware/teensy/cores/teensy3/Arduino.h:1,
from /Applications/Arduino.app/Contents/Resources/Java/libraries/SPI/SPI.h:15,
from LEDbeltKit_alt.pde:20:
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/include-fixed/math.h:287:15: note: double gamma(double)
LEDbeltKit_alt.pde:82:6: note: byte gamma(byte)
LEDbeltKit_alt.pde:164:62: error: call of overloaded 'gamma(int)' is ambiguous
LEDbeltKit_alt.pde:164:62: note: candidates are:
In file included from /Applications/Arduino.app/Contents/Resources/Java/hardware/teensy/cores/teensy3/WProgram.h:6:0,
from /Applications/Arduino.app/Contents/Resources/Java/hardware/teensy/cores/teensy3/Arduino.h:1,
from /Applications/Arduino.app/Contents/Resources/Java/libraries/SPI/SPI.h:15,
from LEDbeltKit_alt.pde:20:
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/arm-none-eabi/bin/../lib/gcc/arm-none-eabi/4.7.2/include-fixed/math.h:287:15: note: double gamma(double)
LEDbeltKit_alt.pde:82:6: note: byte gamma(byte)

Support RGB color format and not just GRB

It would be nice if the library support code like this:

strip.setPixelColorRGB(0, 0xFF0000);  // RED
strip.setPixelColorRGB(1, 0x00FF00);  // GREEN
strip.setPixelColorRGB(2, 0x0000FF);  // BLUE
strip.setPixelColorRGB(3, 0xFFFFFF);  // WHITE

Maximum LED

Hi
May I know how many LED does the library can drive
seems the Arduino would freeze when more than 160 LEDs
thanks

Intel Edison

Compiling for an Intel Edison board throws a "F_CPU was not declared in this scope" error, in line 201 of LPD8806.cpp

It may be that F_CPU is not defined for Intel Edison boards?

Typo in README

Just a small issue - the README says:
Place the LPD8806 library folder your <arduinosketchfolder>/libraries/ folder,

I think the word "in" is missing before "your," and also the <arduinosketchfolder> part isn't showing up in the markdown - you have to escape the < character.

Thank you for making this :)

Multiple includes in one project are not possible

Would it be possible to wrap a

#ifndef __LPD8806_H__
#define __LPD8806_H__

[class]

#endif

around the class definition in the .h file so one can include the .h file multiple times in one project?

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.