int32.positive color
int32.positive brightness
int32 color
combo colors
uint8_t map[16] = {0, 1, 5, 9, 13, 17, 21, 25, 29, 33, 37, 41, 45, 49, 53, 57};
uint8_t getcolor(uint8_t color, uint8_t brightness) {
uint8_t result;
uint8_t bness;
if (color > 1)
bness = (2 - (brightness));
else
bness = brightness;
result = color + bness;
return result;
}
outlet_color = getcolor(map[attr_colors + inlet_color], inlet_brightness % 3);