const int colors [][3] = {
{255, 0, 40},
{128, 100, 0},
{255, 255, 0},
{ 0, 255, 0},
{ 0, 255, 255},
};
void setup() {
Serial.begin(115200);
for (int i = 0; i < sizeof(colors) / sizeof(colors[0]); i++) {
Serial.print("(");
for (int j = 0; j < 3; j++) {
spacepad(colors[i][j]);
Serial.print(colors[i][j]);
if (j != 2)
Serial.print(",");
}
Serial.println(")");
}
}
void loop() {
// empty
}
void spacepad(int val) { // receiving an element in an array
if (val < 100) Serial.print(" ");
if (val < 10) Serial.print(" ");
}