<!-- SC_OFF --><div class=“md”><p>I'm super new a this so sorry in advance.</p> <p>So basically what I'm trying to do is have NUM_LED be variable. I'm making a mask that has changeable parts and each part is going to have a different number of LEDs in them. For example: a fang has 3 LEDs inside of it and a tusk will have 7 LEDs inside of it.</p> <p>So instead of changing the code whenever I want to change parts, Is there a way for the Arduino to know if an LED is on and count the amount of LEDs there are in total?</p> <p>I added a video of the project I've been working on!</p> <p><a href=“https://reddit.com/link/156ueep/video/yarqobdhtkdb1/player”>https://reddit.com/link/156ueep/video/yarqobdhtkdb1/player</a></p> </div><!-- SC_ON --> submitted by <a href=“https://old.reddit.com/user/AndySmallfry”> /u/AndySmallfry </a> <br/> <span><a href=“https://old.reddit.com/r/FastLED/comments/156ueep/question_is_there_a_way_to_have_the_code_count/”>[link]</a></span> <span><a href=“https://old.reddit.com/r/FastLED/comments/156ueep/question_is_there_a_way_to_have_the_code_count/”>[comments]</a></span>