So i'm fairly inexperienced with this item and I was wondering how I could modify the Advanced Belt Code so Two sets of strips (each about a meter long) could operate somewhat independently. I'm wanting them to do similar things just independently timed to the actuation of a sensor.
In short I want (lets say) leds 1-32 to essentially act as a unit and leds 64-32 to act as a unit. each triggered by their own force sensor.
any tips?
LPD 8806 ~ Dual channel
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- imasonaz
- Posts: 5
- Joined: Thu Sep 27, 2012 3:14 pm
Re: LPD 8806 ~ Dual channel
Is it one continuous strip?
-If yes, would you consider splitting it (physically) into two?
This is easiest due to the ability to create two strings in this fashion:
LPD8806 strip = LPD8806(32, 7, ;
LPD8806 strip2 = LPD8806(32, 9, 10);
I used random pins here, just for example.
You could even make is more simple and name them stripA and stripB, then when you need to do something with one, have a 'pointer' named strip, which is the default in the rest of the program. You can then do strip=stripA;, etc when you need to do something with one or the other.
--If no, you'll have to do some odd things, using some pretty fun code modifications:
You'll have to modify the code to either take in the string half you'd like to mess with, or an LED number.
-If no, see first statement about two separate strips.
Hope this helps, let me know is you have any questions about how to best do this.
-If yes, would you consider splitting it (physically) into two?
This is easiest due to the ability to create two strings in this fashion:
LPD8806 strip = LPD8806(32, 7, ;
LPD8806 strip2 = LPD8806(32, 9, 10);
I used random pins here, just for example.
You could even make is more simple and name them stripA and stripB, then when you need to do something with one, have a 'pointer' named strip, which is the default in the rest of the program. You can then do strip=stripA;, etc when you need to do something with one or the other.
--If no, you'll have to do some odd things, using some pretty fun code modifications:
You'll have to modify the code to either take in the string half you'd like to mess with, or an LED number.
-If no, see first statement about two separate strips.
Hope this helps, let me know is you have any questions about how to best do this.
Please be positive and constructive with your questions and comments.