![]() ![]() The latest version of Jinx! allows programming of multiple regions, I used this to separate 6 rectangles with the 'strobe' effect, ticked 'auto colour' and 'Audio Control' = 70's DISCO!! Just choose the desired effect, Click Setup > Start Output and watch your lights go. The COM port is whatever COM port that your Arduino uses which you can find out using Device Manager in Windows. You'll probably also spot that in the Fast Patch screen I have selected Snakelines due to the order I laid down my LEDs and that the channel order is GBR not RGB as the 36mm WS2801 are ordered Green Blue Red. Here are the screen shots for my set up using 120 LEDs, remember that the number of channels used is LEDs/Pixels times by 3 (R,G and B). I didn't need to use the Bluetooth option (even though I tried) so my laptop running Jinx connects directly to the Arduino via a USB 2.0 A to B Cable. I decided to go for Jinx! which I found really easy to set up. // So for example, if you set the first two explicit entries of a compact // palette to Green (0,255,0) and Blue (0,0,255), and then retrieved // the first sixteen entries from the virtual palette (of 256), you'd get // Green, followed by a smooth gradient from green-to-blue, and then Blue.Īs mentioned in the Pixel Drop Ceiling Instructable Jinx! and Glediator do a great job of controlling your WS2801 LEDs. FastLED offers // palettes that store 16 distinct entries, but can be accessed AS IF // they actually have 256 entries this is accomplished by interpolating // between the 16 explicit entries to create fifteen intermediate palette // entries between each pair. // However, FastLED also offers a compact alternative. // FastLED does offer traditional 256-element palettes, for setups that // can afford the 768-byte cost in RAM. ![]() A 256-entry color palette takes up 768 bytes of RAM, which on Arduino // is quite possibly "too many" bytes. You can then // index into the color palette using a simple 8-bit (one byte) value. Additionl notes on FastLED compact palettes: // // Normally, in computer graphics, the palette (or "color lookup table") // has 256 entries, each containing a specific 24-bit RGB color. // Some notes on the more abstract 'theory and practice' of // FastLED compact palettes are at the bottom of this file.ĬRGBPalette16 currentPalette TBlendType currentBlending Įxtern CRGBPalette16 myRedWhiteBluePalette extern const TProgmemPalette16 myRedWhiteBluePalette_p PROGMEM // FastLED provides a few pre-configured color palettes, and makes it // extremely easy to make up your own color schemes with palettes. Although this sketch has eight (or more) different color schemes, // the entire sketch compiles down to about 6.5K on AVR. // USING palettes is MUCH simpler in practice than in theory, so first just // run this sketch, and watch the pretty lights as you then read through // the code. // These compact palettes provide an easy way to re-colorize your // animation on the fly, quickly, easily, and with low overhead. This example shows several ways to set up and use 'palettes' of colors // with FastLED. #define LED_PIN 3 #define DATA_PIN 2 #define CLOCK_PIN 3 #define NUM_LEDS 120 #define BRIGHTNESS 64 #define LED_TYPE WS2801 #define COLOR_ORDER GBR CRGB leds If you use a power supply for your Arduino you can simple turn on the power to that and then the power to the LEDs and you are go! Please be sure to change the pin numbers in the program as shown in the code below. ![]() You also need to install the FastLED 3.1 Library to the computer you are programming the arduino with. There is an example video of this included above. The Arduino can be programmed with the FastLED 3.1 NoisePlusPalette. ![]()
0 Comments
Leave a Reply. |