Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev Request: Please help me learn #77

Open
Quimbyf opened this issue Sep 15, 2023 · 0 comments
Open

Dev Request: Please help me learn #77

Quimbyf opened this issue Sep 15, 2023 · 0 comments

Comments

@Quimbyf
Copy link

Quimbyf commented Sep 15, 2023

Hi,
After sometime, problem solving and learning I have got this working with a 300 LED string. but now I'm stuck.

I wonder if there is a way to change the code to split the string, what I would like to do is split it into n number of sections (10 in this case), and have the same visualization working for each section,

I have a feeling it should be pretty simple, but can't get my head around where in the code to change it.

I think that adding a variable in config.py N_sections = 10 , and then dividing the string into that number of sections is the starting point, but then I need to output 10 sets of changes to the string..... so I think it needs a loop in each of the options scroll, energy and spectrum, using 300/10 LED's but each in the correct area on the strip.

For Energy, rather than starting at the centre, the strip would need to be split into 10 sections, so there would need a counter for each loop to set the section 0-30, 31-60 etc. more variables, then the rest of the code should work I guess and similar for the other functions, but I'm just too much of a noob to work out where and how to add these variables, if someone wanted to collaborate I would be happy to learn and help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant