Skip to content
This repository has been archived by the owner on Nov 5, 2024. It is now read-only.

Feature: Avoid cutting LED strips #96

Open
Repsionu opened this issue Feb 15, 2020 · 0 comments
Open

Feature: Avoid cutting LED strips #96

Repsionu opened this issue Feb 15, 2020 · 0 comments

Comments

@Repsionu
Copy link

Hi everyone,
sometimes during development it is good NOT to cut LED strips to specified length before testing.
But original .ino sets unused LEDs to BRIGHT WHITE- rather annoying IMHO :-)
So for testing You can make minor changes:

  1. add a new #define:
    #define LEDS_TOTAL 50 //how many LEDs are at all- Your number

  2. modify size of arrays:
    CRGB leds[LEDS_TOTAL]; //was NUM_LEDS
    CRGB ledsTemp[LEDS_TOTAL]; //was NUM_LEDS

  3. in setup() black out unused:
    //Nonused LEDS black

       for (int ledNum = NUM_LEDS; ledNum < LEDS_TOTAL; ledNum++)
       {
         ledsTemp[ledNum]=0;
       }  
       FastLED.show();
    
  4. So the unused LEDs will be black :-)
    Best regards and hope this will be of some help,JR
    And BTW thanks for a superb and COLORFUL development...

@Repsionu Repsionu changed the title Avoid cutting LED strips Feature: Avoid cutting LED strips Feb 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant