     radio.startListening();                 // Start listening
 }
 
-void ReceiveReport(DataStruct *data){       //Function to receive data
+void ReceiveReport(){       //Function to receive data
   if(radio.available()){
-    radio.read(data, sizeof(DataStruct));
+    radio.read(&Report, sizeof(DataStruct));
   }
 }
+
+/*void lcd_print (int a, int b){
+  if (Report.Robot == 0){
+    lcd.setCursor (5,0);
+    lcd.print ("UNBALL");
+  }
+  if (Report.Robot == 1){
+    lcd.setCursor (5,0);
+    lcd.print ("ROBOT 0");
+  }
+  if (a == 2){
+    lcd.setCursor (5,0);
+    lcd.print ("ROBOT 1");
+  }
+   if (a == 3){
+    lcd.setCursor (5,0);
+    lcd.print ("ROBOT 2");
+  }
+}*/
 
 
 
 
-
-

int CS = 10; //pro micro

RF24 radio(CE,CS);

const uint64_t Channels[4] = { 0xABCDABCD71LL, 0x544d52687CLL , 0x644d52687CLL, 0x744d52687CLL};
uint64_t ChannelEnvia = Channels[0];
uint64_t ChannelRecebe = Channel[3];

void setup() {
  // put your setup code here, to run once:
  RadioSetup();

}

void loop() {
  // put your main code here, to run repeatedly:
  ReceiveReport(&Report);

}

void RadioSetup(){

#include <SPI.h>
#include "RF24.h"
#include <Wire.h>
#include <LiquidCrystal_I2C.h>

struct DataStruct{
    int Robot;
    int Message;
};

DataStruct Report;
