Void value not ignored as it ought to be

This is the receiver code,please someone help me to compile it,

#include <Servo.h>
#include <SPI.h>
#include “RF24.h”
Servo Servo_motor_x,Servo_motor_y;
RF24 radio(9,10);
const uint64_t pipe = 0xE8E8F0F0E1LL;
int data[2];

void setup()

void loop()
if (radio.available()){
bool done = false;
while (!done){
done = radio.read(data, sizeof(data));
Servo_motor_x.write (data[0]);
Servo_motor_y.write (data[1]);




This is the receiver code,please someone help me to compile it,

This is a new question in a very old Thread. I have suggested to the Moderator to move it to its own Thread.

If you want help with a compiler error message then please post the error message.

If you are new to nRF24L01+ modules then have a look at this Simple nRF24L01+ Tutorial.

Wireless problems can be very difficult to debug so get the wireless part working on its own before you start adding any other features.

The examples are as simple as I could make them and they have worked for other Forum members. If you get stuck it will be easier to help with code that I am familiar with. Start by getting the first example to work

There is also a connection test program to check that the Arduino can talk to the nRF24 it is connected to.


Posts split from old topic as suggested