 #include "IRremote.h"  //Remote control library
 #endif
 
-#define PIN 4
+#define NUM_OF_PIXELS    256
+#define MATRIX_DATA_PIN  4
+#define RECEIVER_PIN     12
 
-int receiver = 12; // Signal Pin of IR receiver to Arduino Digital Pin 12
-
-IRrecv irrecv(receiver);    // create instance of 'irrecv'
+IRrecv irrecv(RECEIVER_PIN);    // create instance of 'irrecv'
 decode_results results;     // create instance of 'decode_results'
 
-Adafruit_NeoPixel strip = Adafruit_NeoPixel(256, PIN, NEO_GRB + NEO_KHZ800);
+Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_OF_PIXELS, MATRIX_DATA_PIN, NEO_GRB + NEO_KHZ800);
 
 //int sensorPin = A5;    // select the input pin for the potentiometer
 //int sensorValue = 0;  // variable to store the value coming from the sensor

//Frame 1
    if (frame==1) {

        uint32_t myMatrixRow1[256] = {d,d,w,w,d,d,d,d,d,d,d,d,d,d,d,d,
                                      d,d,d,d,d,d,d,d,d,d,d,w,d,w,d,d,
                                      d,d,d,w,d,w,d,d,d,d,d,d,d,d,d,d,
                                      d,d,d,d,d,d,d,d,d,w,d,d,d,d,d,d,

int frame;
int j;
uint32_t i;
uint8_t d = 0;
uint8_t b = pow(2,7);
uint8_t g = pow(2,15);
uint8_t r = pow(2,23);
uint8_t p = b+r;
uint8_t y = g+r;
uint8_t a = b+g;
uint8_t w = b+g+r;


void setup() {
    irrecv.enableIRIn(); // Start the remote control receiver

    Serial.begin(9600); // setup serial printing so you can troubleshoot
    
    strip.begin();
    strip.show(); // Initialize all pixels to 'off'

