Arduino Forum

Using Arduino => LEDs and Multiplexing => Topic started by: Chris102209 on Aug 06, 2019, 04:42 am

Title: Combine 2 codes form FastLED and switch with button.
Post by: Chris102209 on Aug 06, 2019, 04:42 am
I am creating an infinity mirror project and would like to combine 2 codes from FastLED's sample library. The reason for this is one sketch is more flashes and the other is calm. I want to combine these to codes so I can press a button and switch between them. led are WS2812B and I am using an Arduino Uno. I am aware it would be easier if I just wrote the code form scratch but, I don't know how to yet. Here are the two codes, one is modified slightly by me and the other is not. If any more information is needed or I posted incorrectly please let me know!