Nrf240l1 bluetooth(arduino)

Hello, I have a question, bluetooth sends the character “a” and arduno accepts and sends 0 through nrf and another nrf should receive and run a 16x16 led matrix please help?)
Code led matrix 16x16:

#define NUM_LEDS 256
#include “FastLED.h”
#define PIN 7
CRGB leds[NUM_LEDS];
byte counter;
void setup() {
FastLED.addLeds<WS2811, PIN, GRB>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
FastLED.setBrightness(50);
pinMode(13, OUTPUT);
}
void loop() {
for (int i = 0; i < NUM_LEDS; i++ ) { // от 0 до первой трети
leds[i] = CHSV(counter + i * 2, 255, 255); // HSV. Увеличивать HUE (цвет)

}
counter++; // counter меняется от 0 до 255 (тип данных byte)
FastLED.show();
delay(5); // скорость движения радуги
}

Sender nrf code:
#include <SPI.h>
#include “nRF24L01.h”
#include “RF24.h”

RF24 radio(9, 10); 
byte address[6] = {“1Node”, “2Node”, “3Node”, “4Node”, “5Node”, “6Node”}; 
byte transmit_data[3];
byte latest_data[3];
boolean flag; 
void setup() {
Serial.begin(9600); 
radio.begin(); 
radio.setAutoAck(1); 
radio.setRetries(0, 15); 
radio.enableAckPayload(); 
radio.setPayloadSize(32); 

radio.openWritingPipe(address[0]); 
radio.setChannel(0x6e);

radio.setPALevel (RF24_PA_MAX); //уровень мощности передатчика. На выбор RF24_PA_MIN, RF24_PA_LOW, RF24_PA_HIGH, RF24_PA_MAX
radio.setDataRate (RF24_250KBPS); //скорость обмена. На выбор RF24_2MBPS, RF24_1MBPS, RF24_250KBPS
radio.powerUp(); //начать работу
radio.stopListening(); //не слушаем радиоэфир, мы передатчик
}

void loop() {
if(Serial.available()>0)
{
char s=Serial.read();
if(s==‘a’){transmit_data[0];}
}
}

It's not quite clear what problem you have; can you rephrase?

Can you please edit your post, select all code and click < / > in the toolbar of the edit windows. Next save your post.

transmit_data[0]; is not doing much; what are you trying to achieve with that statement?

The OP did not tell us what the problem is. Bluetooth and the nrf24 both operate somewhere around 2.4gHz, don't they?
Paul

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.