Hello fellow PB enthusiasts!
I’m currently working on an art piece where I need to be able to run multiple patterns, like with the Multisegment set up, but with specific segment lengths and it just keeps giving me the “array out of bounds” error, when it should be functioning.
I’m using a v3 with the sensor expansion and the total pixel count is 248. As soon as I add the last segment of 156 at the end, that pops the error. I’m thinking it’s asking too much of the controller? Or I could just be stupid, I’ve never been the best at coding. Going from @zranger1 's explanation in here a few years ago, I put it together like this:
SetSegState(1,true) ; // true = on, false = off
SetSegEffect(1,1) // sets the animation for the segment. (0 is none)
SetSegHSV(1,1,1,1); // sets the initial color for the segment (segment number,h,s,v)
SetSegSpeed(1,1); // sets initial speed for animations (,1)
SetSegSize(1,49) // (,)
SetSegState(2,true) ; // true = on, false = off
SetSegEffect(2,2) // sets the animation for the segment. (0 is none)
SetSegHSV(2,4,4,4); // sets the initial color for the segment (segment number,h,s,v)
SetSegSpeed(2,1); // sets initial speed for animations (,1)
SetSegSize(2,31) // (,)
SetSegState(3,true) ; // true = on, false = off
SetSegEffect(3,2) // sets the animation for the segment. (0 is none)
SetSegHSV(3,4,1,4); // sets the initial color for the segment (segment number,h,s,v)
SetSegSpeed(3,1); // sets initial speed for animations (,1)
SetSegSize(3,12) // (,)
SetSegState(4,true) ; // true = on, false = off
SetSegEffect(4,4) // sets the animation for the segment. (0 is none)
SetSegHSV(4,5,5,5); // sets the initial color for the segment (segment number,h,s,v)
SetSegSpeed(4,1); // sets initial speed for animations (,1)
SetSegSize(4,156) // (,)
Any guidance would be very appreciated! You guys rock…