// Load up the libraries
#include < SPI.h >
#include < nRF24L01.h >
#include < RF24.h >
#include < string.h >
#include < stdio.h >
#include < Servo.h >
#include < stdio.h >
#include < stdlib.h >
// define the pins
#define CE_PIN 9
#define CSN_PIN 10
#define motor 3
// Create a Radio
RF24 radio(CE_PIN, CSN_PIN);
// The tx/rx address
const byte rxAddr[6] = "00001";
int pos = 0; //servo position
Servo servo_6; // attaches the servo on pin 6 to the servoobject
void setup()
{
servo_6.attach(6, 500, 2500); //servo map
// Start the serial
Serial.begin(9600);
while (!Serial);