How to get full brightness of CRGB sketch for neopixel

I have 5 neopixels that I need to be as bright as possible.
The first 4 are used as eyes for a droid model. The fifth is controlled by audio.
I have a start on the sketch, just need to learn how to adjust the brightness.

#include <FastLED.h>

// How many leds in your strip?
#define NUM_LEDS 10

#define DATA_PIN 3
//#define CLOCK_PIN 13

// Define the array of leds
CRGB leds[NUM_LEDS];

void setup() { 
    // Uncomment/edit one of the following lines for your leds arrangement.
    // ## Clockless types ##
    FastLED.addLeds<NEOPIXEL, DATA_PIN>(leds, NUM_LEDS);  // GRB ordering is assumed

}

void loop() { 
  // Turn the LED on, then pause
  leds[0] = CRGB::White;
  leds[1] = CRGB::White;
  leds[2] = CRGB::White;
  leds[3] = CRGB::White;
  leds[4] = CRGB::White;
  FastLED.show();
  delay(500);
  // Now turn the LED off, then pause
  leds[4] = CRGB::Black;
  FastLED.show();
  delay(1000);
}

thank you

FastLED.setBrightness(MAXBRIGHT);

http://fastled.io/docs/

If I remember correctly, the FastLED library defaults to maximum brightness, so you can only adjust downwards, which is not what you need.

Do you believe your LEDs are not at maximum brightness? It could be because of your power supply.

I am using the uno 5v rail at the moment for programming and testing. The final install will be a separate 5v regulator.

Measure the voltage there when you have some pixels lit up.

a7

Yes, forgot about voltage drop. thanks

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.