Giter VIP home page Giter VIP logo

adalight's Introduction

Adalight is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, either version 3 of
the License, or (at your option) any later version.

Adalight is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with Adalight.  If not, see <http://www.gnu.org/licenses/>.

adalight's People

Contributors

ladyada avatar paintyourdragon 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

adalight's Issues

Some lights not working

Hello,

I made this wonderful creation, and got really excited even with half of my lights not working. I tried to trouble shoot my issues, but failed to do so - please let me know if this is a known issue or am I doing something wrong.

Here is my setup. I have 50 lights in total: 17 on horizontal and 10 on vertical axes. I do not have any gaps as mentioned in the original code. I start on the bottom left corner, wrap it around along the bottom right edge towards right side, and take it from there.

img_20170918_211936

My issue is that ONLY my left and top edge pixels are actually working with adalight. I thought there is something wrong with my pixels, but that is not the case (checked by colorswirl and addressing each pixels manually). Even on left and top - there are some corner LEDS that DO NOT work (see fig, I assume the gray is not even processed). I highlight the LEDs that DO seem to work in this figure.

I changed the line for screen as {0,17,10} and addressed coordinates as shown in the figure. Am I missing something?? Also - I am using processing 2.2.1 if that helps.

Thanks a lot for any help - again this code is just amazing!! and I am so excited to get this working.

capture

Extremely slow framerate on Linux

When running the Adalight sketch on Linux (Kubuntu 11.10 and Linux Mint 12) framerates average around 3-4 FPS while the C Colorswirl framerate averages 140 FPS and the Java Colorswirl framerate averages 40 FPS.

If someone knows of a way to make this run better on Linux, but doesn't have the time to work on it, let me know and I'd be happy to try to implement it. Would it be possible/feasible to re-write the Adalight sketch in C?

Remote Control

Hello
is it possible to add a remote control. i want control
adalight with a remote, to switch and use the lights as
backlight for my tv

  • ON (Ambilight on)
  • OFF (all off)
  • Ambilight OFF (show a whitelight)
  • Red (show red lights)
  • Blue (show blue lights)
    ....

regard

Writing Code for 6803 Ledstrip

I have been trying to make the Adafruit for a few weeks. What I found out so far:
I've got another kind of ledstrip than advised. I have the 6803 (I'm just using an arduino with this ledstrip: http://www.banggood.com/5M-5050-RGB-Dream-Color-6803-IC-LED-Strip-Light-Waterproof-IP67-12V-DC-p-931386.html), while adafruit works with WS2801 ledstrips. The differences are: the microcontrollers are different. So the SPI settings don't work for me. I have also tried adapting these settings, but no possible combination is working. And three LEDS are handled per one microcontroller.

If I run this program: https://github.com/adafruit/LPD6803-RGB-Pixels/blob/master/examples/strandtest/strandtest.pde
Mentioned in this tutorial: https://learn.adafruit.com/20mm-led-pixels/code
I adapt:
int dataPin = 11;
int clockPin = 13;
and I've got no problems at all, rainbows all the way :)
The sad thing is: this does not give further instructions in how to make ambilight work.

So when I try the adalight test: https://github.com/adafruit/Adalight/blob/master/Arduino/LEDstream/LEDstream.pde
Mentioned in this tutorial: https://learn.adafruit.com/adalight-diy-ambient-tv-lighting/download-and-install
it just does'nt work. The ledstrip just stays the same colour as it was before I loaded the program.

The strandtest I mentioned, is perfectly working. Now I have adapted the LEDstream file for on the arduino. It gives no errors, and my inbedded tiny strandtest works so far.
https://github.com/tvdzwan/hyperion/files/149536/LEDstream6803.zip

The sad thing is: I found out the problem is probably in the Processing files. The working strandtest (Arduino) has a tiny section in which it transfers the RGB numbers to bytes:

// Create a 15 bit color value from R,G,B
unsigned int Color(byte r, byte g, byte b)
{
//Take the lowest 5 bits of each value and append them end to end
return( ((unsigned int)g & 0x1F )<<10 | ((unsigned int)b & 0x1F)<<5 | (unsigned int)r & 0x1F);
}

Now it seems the RGB values are not converted to bytes in the Ledstream (Arduino) file I edited, but in the ColorSwirl and Adafruit (Processing) files: https://github.com/adafruit/Adalight

Now I have totally no clue how to adapt the Processing files so it sends the bytes in the correct sequence to the ledstrip. If it was an arduino file it would be easier: I would just copy the code above and try things. But I have no clue how to rewrite it to the Processing language, and when i found that out: which values in the Processing code I should transfer to bytes.

I would be so grateful if someone would help me! I've been on this for weeks (because I have very little experience with writing codes). Thank you in advance!

Use processing version 2 not version 3

If you're running into issues with "could not find sketch size" and registerDispose(DisposeHandler). You need to make sure you are using the older version of processing (version 2).

You can check this by going to help > about processing.

There were changes made to processing 3 that break the code in this repository.
See this post on the forms: https://forums.adafruit.com/viewtopic.php?f=47&t=78370

This is just an issue for people who may stumble on this issue in the future. Otherwise, thanks for the code base! Got my first electronics project working! : )

Can't use Adalight on second screen

I attempted to use the Adalight code with my second screen, but no matter what I did the colors seemed to be coming from the primary display.

After some debugging, the issue seemed to be coming from this line (line 190 of Adalight.pde)

dispBounds[d].x = dispBounds[d].y = 0;

This line was clearing an x offset of 2560 to 0.

Once I got rid of that line of code, it worked fine.

Also, down around line 250 the code is creating and transmitting data for leds.length - 1. I'm not sure what the reason for the -1 is, but my last LED was not getting programmed. I got rid of the -1 and it worked fine.

As a side note, I adapted this project to work over wifi by using the Processing Networking library in place of Serial. My client is running on an esp8266. It was a really easy change to make and way more convenient for my setup than running an extra cable to the TV. You might consider that as a future feature for this project.

screen mirror

Sorry, i dont know where else to post this, i just installed my leds on the back of my tv, but instead of beginning counter clockwise, i started clockwise, how can i change te code so i dont have to place all the leds al over again :)

thank in advance

Interest in pull request to add features to colorswirl?

A few months ago I forked this repo with the intention of expanding the colorswirl demo program. I finally got around to working on it and have expanded it to support a bunch of different options including fading, rotation speed and direction, shadow length, and different colors. It also supports the dynamic changing of these options via a message listener on a separate thread to prevent performance losses. On the down side, it will only compile and run on Linux so I'm asking if there's any interest in merging these expansions into the original repo before submitting a pull request.

Current code can be found in my fork at https://github.com/shanet/Adalight.

ColorSwirl and Adalight on Processing only work with 25 LEDs exactly

In either Colorswirl or Adalight, changing this line:
int N_LEDS = 25; // Max of 65536

Or this line:
static final int leds[][] = new int[][] {...}

Ends up in no LEDs lighting up at all. Even simply changing N_LEDS to 24 or 26 in Colorswirl prevents the software from working at all. No error or exception, just black LEDs

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.