FastLED 3.9.15
Loading...
Searching...
No Matches

◆ set_pixel()

void fl::third_party::ezWS2812gpio::set_pixel ( uint8_t red,
uint8_t green,
uint8_t blue,
uint16_t count = 1 )
inline

Set color for specific number of LEDs.

Definition at line 299 of file ezWS2812.h.

299 {
300 // Apply brightness
301 red = (red * brightness_) / 100;
302 green = (green * brightness_) / 100;
303 blue = (blue * brightness_) / 100;
304
305 noInterrupts();
306 for (uint16_t i = 0; i < count && i < num_leds_; i++) {
307 // Send in GRB order for WS2812
308 send_byte(green);
309 send_byte(red);
310 send_byte(blue);
311 }
312 interrupts();
313 }
void send_byte(uint8_t byte_value) const
Send a byte (8 bits) with MSB first.
Definition ezWS2812.h:261
fl::u16 uint16_t
Definition coder.h:214

References brightness_, num_leds_, and send_byte().

Referenced by set_all().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: