Comments (5)
I just checked out sebastian's fork. You should also merge in his commits, it looks like they fix a couple of other issues :)
from apa102-pi.
Thanks for your comments! This explains why the LEDs sometimes did not clear up when I hit Ctrl-C ;-)
Usually they did, but this obviously depends on when in the entire cycle Ctrl-C is being hit.
The new samples are not quite debugged yet, I suspect that there will be some more errors present. For example I don't check at all for overflow, so for example stuff like "currentCycle*numLEDs+currentStep" is bound to break after a few hours, and with a lot of LEDs.
As for the fork: I don't understand the change. What error does it prevent? The clearStrip method is only to clear the strip e.g. before exiting the application (the comment explains this). Why would one want to release and reallocate the memory for the strip buffer?
-> Anyway, I'll have a more detailed look at your comments on the weekend.
from apa102-pi.
The clearing of the memory help if you only want to set specific leds after clearing the strip. I guess its not really usefullI for exiting the application, but when you built out some of the samples and want to clear the strip midrun, and after that just set a couple of pixels, you dont have to set all other leds to black manually.
And the other commit he did was swap the green and blue byte, since those are in the wrong order in your code. For example your colorwheel starts on blue instead of green.
from apa102-pi.
Coloring is a different issue, that I haven't tackled yet: There are different strips out on the market. Some are rgb, others are bgr, and there are possibly even more. It will get tricky if strips of different makes are coupled together. For example the strandtest would suddenly change color on the boundary of different types.
It looks like I have a different strip than you have, because on mine the colors are correct.
from apa102-pi.
I think I fixed the reported issues, so I am closing it. Feel free to reopen if you disagree.
from apa102-pi.
Related Issues (20)
- Trying to modify the code as a northern lights show. HOT 7
- Constant lights HOT 7
- Raspberry pi 3 apa102 ambilight HOT 3
- control each led HOT 2
- Software SPI (Bit Bang) informations HOT 2
- [Suggestion] Please package this library on PyPi/pip HOT 4
- A level shifter is not needed HOT 1
- Running sample with a single LED HOT 4
- Rainbow corruption? HOT 19
- package installation location HOT 4
- global_brightness range HOT 3
- User hardware SPI HOT 8
- Use hardware SPI in Rasberry Pi 3 model B HOT 4
- python 3.8 vs. 3.5 HOT 1
- Not Fast enough HOT 5
- LED Colour HOT 5
- Bit Banging Not Working HOT 9
- feature or bug print statements HOT 2
- connecting APA102 LED and BSS138 level shifter HOT 1
- LED remaining dark HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apa102-pi.