Hello,
I am looking for some input or direction to links that could help me out. I have a wearable light project. I am using a Teensy 3.2 and Bluetooth to send commands from my Android phone. The lights I am using are WS2812B. I am currently using the Adafruit_Neopixel Arduino library but want to change to FastLED. I understand that FastLED is faster and more capable. I currently have four light patterns and want to add more. The interface I have from my phone to the Teensy was made using App Inventor. Basically I press a button on my phone that sends a signal stating which pattern to run. I am using code from Adafruit that works with multi-tasking. (reference https://learn.adafruit.com/multi-tasking-the-arduino-part-3/overview?view=all) This code is useful in that I can “interrupt” code mid run and have minimal lag.
So, the help I am looking for is how can I add multiple patterns / sketches in to one sketch and control it from my phone using FastLED and not have any lag from changing from one pattern to the next? I have searched for FastLED and multiple sketches in one but have not been successful yet. I want the multi-tasking abilities and not have to deal with the issues the multi-task article describes regarding interrupts and having to wait for the cycle to complete before the command is recognized and implemented.
Thanks
I am looking for some input or direction to links that could help me out. I have a wearable light project. I am using a Teensy 3.2 and Bluetooth to send commands from my Android phone. The lights I am using are WS2812B. I am currently using the Adafruit_Neopixel Arduino library but want to change to FastLED. I understand that FastLED is faster and more capable. I currently have four light patterns and want to add more. The interface I have from my phone to the Teensy was made using App Inventor. Basically I press a button on my phone that sends a signal stating which pattern to run. I am using code from Adafruit that works with multi-tasking. (reference https://learn.adafruit.com/multi-tasking-the-arduino-part-3/overview?view=all) This code is useful in that I can “interrupt” code mid run and have minimal lag.
So, the help I am looking for is how can I add multiple patterns / sketches in to one sketch and control it from my phone using FastLED and not have any lag from changing from one pattern to the next? I have searched for FastLED and multiple sketches in one but have not been successful yet. I want the multi-tasking abilities and not have to deal with the issues the multi-task article describes regarding interrupts and having to wait for the cycle to complete before the command is recognized and implemented.
Thanks