Blinkstick Square - How to set all LEDs to black at once

Right now I am typing set color black individually for each LED but is there any way for me to type set color of all LEDs to black?
Sorry new to this.


from blinkstick import blinkstick
import time
b = blinkstick.find_first()

while True:

b.set_color(index=2, name='pink')
b.set_color(index=3, name='lightyellow')
b.set_color(index=2, name='black')
b.set_color(index=3, name='black')

You can use set_led_data function which will control multiple LEDs at once.

There is also a BlinkStick Pro class which simplifies sending LED frames to the device. You can find a sample code here: