Arduino_APA102 - setCurrent()

Control the internal PWM duty cycle of the LEDs, remember that this is not the same as brightness, with the same duty cycle you can have different brightness depending on the colors used.

Value from 0(min) to 31(max)

Syntax

leds.setCurrent(31)   //Global
leds.setCurrent(0,31) //Individual

Parameters

  • (optional)indexLed: LED to set
  • newCurrent: PWM duty cycle, from 0 to 31

See also