Arduino Uno + nRF24L01+ Basic Control and Serial.write()

I've two MakerFocus NRF24L01+PA+LNA Wireless Transceiver RF Transceiver Module 2.4G 1100m
that I am trying to use a simple button script with.
I am trying to debug with an LED in pin 13 and Serial.out.
If radio.begin(); and radio.openWritingPipe(pipe); the LED does not light up on PIN 13
and I get strange output on the Serial moitor.

Any ideas would be appreciated.

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
int msg[1];
RF24 radio(9,10);
const uint64_t pipe = 0xE8E8F0F0E1LL;
const int buttonPin = 7;     // the number of the pushbutton pin
const int ledPin =  13;      // the number of the LED pin
int buttonState = 0;


void setup(void){
    Serial.begin(9600);
    //radio.begin();
  //radio.openWritingPipe(pipe);
  pinMode(ledPin, OUTPUT);
  pinMode(buttonPin, INPUT);


}

void loop(void){
 buttonState = digitalRead(buttonPin);

  if (buttonState == HIGH) {
    digitalWrite(ledPin, HIGH);
  } else {
    digitalWrite(ledPin, LOW);
  }
  
# rf out code
  //if (digitalRead(SW1) == HIGH){
  //msg[0] = 111;
  //radio.write(msg, 1);}
}

Well ... I'm embarrassed about this.

The LED in Pin 13 will not light up but Serial.print("*"); does work.

I was using Serial.write("*");

I can debug now but I'd like to know why the LED will not work.

1885:
I can debug now but I'd like to know why the LED will not work.

How about sharing the results of the debug?

aarg:
How about sharing the results of the debug?

All I will do is set up an array of buttons to use from Analog rather than digital then use the RF to control a wheeled servo car(custom)

Have a look at this Simple nRF24L01+ Tutorial

...R

1885:
Well ... I'm embarrassed about this.

The LED in Pin 13 will not light up but Serial.print("*"); does work.

I was using Serial.write("*");

I can debug now but I'd like to know why the LED will not work.

How is the NRF24 module connected to the Arduino ? Using SPI I suspect.

SPI uses pin 13 for its clock signal.

What's your receiver code look like? Is the LED on transmitter or receiver?

LOL. I another oversight. Pin 13 is used by the RF24L01

I'm working on the code. once a simple connection is made I'll post back .

all is good! Thanks

Robin2:
Have a look at this Simple nRF24L01+ Tutorial

...R

This worked very well for me! Simple nRF24L01+ 2.4GHz transceiver demo - Exhibition / Gallery - Arduino Forum
Now to add some controls