arduino / node_modulino_firmware

Mozilla Public License 2.0
1 stars 0 forks source link

Make brightness argument optional in ModulinoPixels class #5

Closed alranel closed 7 months ago

alranel commented 7 months ago

As of now, the brightness of ModulinoPixels is the second argument thus is always mandatory:

void set(int idx, uint8_t brightness, Color rgb);

It would be better to make it optional by changing the order of arguments:

void set(int idx, Color rgb, uint8_t brightness = 255);