-
 #include <SPI.h>
 #include "nRF24L01.h"
 #include "RF24.h"

void setup(void){

  Serial.begin(57600);
//  printf_begin();
  
  radio.begin();
  radio.setAutoAck(0);
//  radio.printDetails();  
  radio.openReadingPipe(1,pipe);
  radio.startListening();

  strip.begin();
  strip.show(); // Initialize all pixels to 'off'
  
  timeout = millis() + 10000;

}

  switch (cmnd){
    case 'P':    // set pattern number
      if (msg[3] != pattern){  // new pattern
        pattern = msg[3];
        return true;
      }
      else{
        return false;
      }
      break;
    case 'S':    // set speed of the pattern
      rate = msg[3];
      return false;
      break;
    default:
      return false;
  }
