Slightly desperate here! I’m down to the wire on a wearable project that’s due for a performance tomorrow. It’s a heart-shaped Ws2812B matrix corset/boustier on a Teensy 3.2 running xymapped FastLED sketches beutifully. BUT…
I have been trying to adjust the Macetech BLE RGB shades code from the neopixel library to FastLED so that it can be controlled through Bluefruit LE Connect. I’m a total novice with coding and I’m sure it’s something simple/stupid that I’m missing. This version won’t even compile
And when I had it compiling before it was only showing one frame of the animation. My adjustments seem to make it worse and now I’m confused and stuck. I’ve basically lived on this board looking for answers for 2 nights and it’s time to just ask… Can someone please help?
I should add that I’m trying to run hardware serial through the Adafruit LE UArt Friend attached to teensy 3.2. The original RGB Shades code using the neopixel library worked fine. Also I’ve attached a txt file of the latest compile errors
Looks like line 217 should be leds[i] = CRGB(0, 0, 0);
Yay @Jason_Coon ! I had that before but then I get this…
xymatrixdemoBLE.ino: In function ‘void loop()’:
xymatrixdemoBLE.ino:217:21: error: expected unqualified-id before ‘(’ token
xymatrixdemoBLE.ino:226:13: warning: unused variable ‘pressed’ [-Wunused-variable]
expected unqualified-id before ‘(’ token
So it is compiling but its just not working in the same way it wasn’t before. The color picker just goes to black and the animations just flash when I’m pressing the button
I actually tried your feather_ble_lamp_fastled code last night and it gave me the same result - but since it was addressing raising brightness I thought that might be the reason.
Its showing slantBars() for all of the buttons- but when i repeatedly press its own button (4) it will advance a frame. How can I tell it to play each animation until a different button is pressed? Also it is giving the correct RGB in the serial monitor but not reading it I guess
I would try to break down and simplify the problem first. Comment out the BLE calls, manually set the mode and see if the patterns display correctly.
You seem to have two XY maps, which one are you using?
Shouldn’t line 217 be leds[i]=(CRGB::(red, green, blue));
And probably move the .show and .delay out of the for next loop. Or do you want to fill them slowly?
I’d also replace the FastLED.show() and delay (20) with FastLED.delay(20). This will send the data to the LEDs and then delay keeping the whole operation to 20 ms. (I think)
Whoa right! I originally was using the XYmap.h for testing. But this code used the -1 version so I translated it for this case. That tab is a mess now
The slant bar pattern is using the wrong one…
Apologies for all of the edits, predictive text on my phone!
@Jeremy_Spencer ah! Yes the color picker is working now!
Oh that makes so much sense- I had sort of forgotten about the tab completely!
@Jeremy_Spencer don’t apologize!! I am so incredibly grateful for your help!
@Charity_Stolarz , now the colour picker is working, what are you looking at next?
Which xy demo should I ditch? The one on the tab was working with all of those animations without the BLE ( from the original RGB shades code in FastLED)
It didn’t even mind when I chopped out the ledArray -1 version