 * Define the LED Matrix.
 */
 Adafruit_NeoPixel strip = Adafruit_NeoPixel(256, MATRIX_DATA_PIN, NEO_GRB + NEO_KHZ800);
-
+uint8_t matrixBrightness = MAX_BRIGHTNESS;
+
+/*
+* Define the pixel list.
+* In this list the raw colors are saved without the brightness
+*/
+uint8_t pixelList[256][3];
 
 /*
 * Setup the Matrix and the serial communication.

void setup()
{
  strip.begin();
  strip.setBrightness(MAX_BRIGHTNESS);
  strip.show();
  Serial.begin(BAUDRATE);
}

      blue = (int)strtol(strBlue, NULL, 16);

      // Set the current pixel
      pixelList[curPixel][0] = red;
      pixelList[curPixel][1] = green;
      pixelList[curPixel][2] =  blue;
    }
  }

  // Update the matrix
  matrixShow();
}


