Hello guys
I have Arduino Nano - ATmega168. Joystick example from nRF24L01 works fine, both receive and transmit. But when i am trying works with digitalWrite(13, HIGH); it does not works. Code below works without two lines:
// radio.begin();
// radio.openWritingPipe(pipe);
when i uncomment it and upload to arduino, led diod does not works. Here is my simplify part of code. Please does anybody know, why it is not work and how can i fix it? Thx guys.
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
#define CE_PIN 9
#define CSN_PIN 10
const uint64_t pipe = 0xE8E8F0F0E1LL;
RF24 radio(CE_PIN, CSN_PIN);
void setup() {
pinMode(13, OUTPUT);
Serial.begin(9600);
radio.begin();
radio.openWritingPipe(pipe);
}
void loop() {
digitalWrite(13, HIGH);
}
Regards Petr