Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error compiling for board Arduino Nano #16

Open
dananjayalakshitha opened this issue Sep 24, 2019 · 1 comment
Open

Error compiling for board Arduino Nano #16

dananjayalakshitha opened this issue Sep 24, 2019 · 1 comment

Comments

@dananjayalakshitha
Copy link

i got a message while compiling the code on Arduino IDE.
`#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
#include<Adafruit_SSD1306.h>
const uint64_t pipeIn = 0xE8E8F0F0E1LL; //pipe address must be same with transmitter

RF24 radio(7, 8);

struct MyData {
byte p;

};

MyData data;

void setup()
{
Serial.begin(9600);
radio.begin();
radio.setAutoAck(false);
radio.setDataRate(RF24_250KBPS);

radio.openReadingPipe(1, pipeIn);
radio.startListening();
pinMode(2, OUTPUT);
}

void recvData()
{
if ( radio.available() )
{
radio.read(&data, sizeof(MyData));

if (data.p < 50) {
  digitalWrite(2, HIGH);
}
else {
  digitalWrite(2, LOW);
}

}
}
void loop()
{
recvData();
Serial.print("Range: ");
Serial.print(data.p);

}
`

exit status 1
Error compiling for board Arduino Nano.

im using nRF24L01 module with arduino nano. please help me....

@TheStaticTurtle
Copy link

What does this have to do whit this project ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants