Controlling brightness ws2812b with FastLED's beatsin8

Hi,

thank you for the response. For some reason I forgot you could adjust the brightness with with the RGB values. This is my code now and it runs perfectly! Thank you so much!

#include <FastLED.h>

#define NUM_LEDS  99
#define LED_PIN   20

CRGB leds[NUM_LEDS];

void setup() {
  FastLED.addLeds<WS2812B, LED_PIN, GRB>(leds, NUM_LEDS);
  FastLED.setMaxPowerInVoltsAndMilliamps(5, 500);
  FastLED.setBrightness(60);
}

void loop() {
  uint8_t sinBeat = beatsin8(30, 50, 255, 0, 0);
  fill_solid(leds, NUM_LEDS, CRGB(sinBeat,0,0));
  FastLED.show();
}