Giter VIP home page Giter VIP logo

adafruit-ws2801-library's Introduction

Adafruit WS2801 Library Build StatusDocumentation

Example library for driving Adafruit WS2801 pixels!

Designed specifically to work with the Adafruit RGB Pixels! 12mm Bullet shape ----> https://www.adafruit.com/products/322 12mm Flat shape ----> https://www.adafruit.com/products/738 36mm Square shape ----> https://www.adafruit.com/products/683

These pixels use SPI to transmit the color data, and have built in high speed PWM drivers for 24 bit color per pixel 2 pins are required to interface

Adafruit invests time and resources providing this open source code, please support Adafruit and open-source hardware by purchasing products from Adafruit!

Written by Limor Fried/Ladyada for Adafruit Industries.
BSD license, all text above must be included in any redistribution


To download. click the DOWNLOADS button in the top right corner, rename the uncompressed folder Adafruit_WS2801. Check that the WS2801 folder contains Adafruit_WS2801.cpp and Adafruit_WS2801.h

Place the Adafruit_WS2801 library folder your /libraries/ folder. You may need to create the libraries subfolder if its your first library. Restart the IDE.

adafruit-ws2801-library's People

Contributors

antonkast avatar dkavanagh avatar evaherrada avatar hoffmannjan avatar jamesfowkes avatar jrcutler avatar ladyada avatar paintyourdragon 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

adafruit-ws2801-library's Issues

WS2801 ledstrip with RBG-order

I have a WS2801 ledstrip (5v, 32 led per meter) which uses the RBG order. Unfortunately the library doesn't support this order.

Compatible with intel Galileo? When trying to build a sketch i'm receiving these errors...

/Users/x/Documents/Arduino/libraries/Adafruit_WS2801/Adafruit_WS2801.cpp: In member function 'void Adafruit_WS2801::updatePins(uint8_t, uint8_t)':
/Users/x/Documents/Arduino/libraries/Adafruit_WS2801/Adafruit_WS2801.cpp:101:17: error: 'PinDescription' has no member named 'pPort'
/Users/x/Documents/Arduino/libraries/Adafruit_WS2801/Adafruit_WS2801.cpp:102:17: error: 'PinDescription' has no member named 'ulPin'
/Users/x/Documents/Arduino/libraries/Adafruit_WS2801/Adafruit_WS2801.cpp:103:17: error: 'PinDescription' has no member named 'pPort'
/Users/x/Documents/Arduino/libraries/Adafruit_WS2801/Adafruit_WS2801.cpp:104:17: error: 'PinDescription' has no member named 'ulPin'
/Users/x/Documents/Arduino/libraries/Adafruit_WS2801/Adafruit_WS2801.cpp: In member function 'void Adafruit_WS2801::show()':
/Users/x/Documents/Arduino/libraries/Adafruit_WS2801/Adafruit_WS2801.cpp:141:7: error: 'SPDR' was not declared in this scope
/Users/x/Documents/Arduino/libraries/Adafruit_WS2801/Adafruit_WS2801.cpp:142:15: error: 'SPSR' was not declared in this scope
/Users/x/Documents/Arduino/libraries/Adafruit_WS2801/Adafruit_WS2801.cpp:142:26: error: 'SPIF' was not declared in this scope

Problem with the [0] led showing RED

Since getting the latest code for the WS2801, it seems that some updates to my strand are causing the [0] LED to show RED.

I have been forced to resort to:
strip.setPixelColor(0, COLOR_BLACK);
to get the strand working as expected.

I have an older copy of the WS2801 library on another machine that I will drop in and see if it works tomorrow, but wanted to raise the issue to see if someone knows more than I do.

Cheers,
Steve

Change order of RGB

I have a WS2801 led strip.
The problem is that it uses the RBG color order.
Can I change it from RGB to RBG in the library for it to work well?

Limitation on Number of LEDs is 352.

Hi all,

I am trying to develop code for R&D using this library and I am using MEGA-2560. I have noticed that numPixels() function returns 0, if number of LEDs are more than 352? Is there any limitations on it at the moment or is it a bug? what is the max number of led this library can support?

Regards,

RL

Support LED Module with different Color Order

Please add support for LED Modules with different color order (LED colors are connected in different order to WS2801).

The code has hardcoded color order RGB, but I'm using Modules with color order BRG (http://shop.led-studien.de/product_info.php/info/p102_RGB-Pixel-50x50mm-inkl--Wannen-Kabel.html).

Currently I swap colors in code, but that rather "ugly".
Of cause it's also possible to change the WS2801 lib, but that "ugly" too.

Thanks for your great lib!

ESP8266 compatibility

Need to tweak the library slightly to use the right calloc function (appears to be mem_calloc on the ESP8266).

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.