projemde nrf24l01 kullaniyorum iki devrem var verici ve alici ve bu devrelerden verici joytsicke bağlı alıcı ise servoya joystickten algıladığı x ve y eksenindeki hareketleri servo motorun dönmesi olarak görmek istiyorum ama kod atamıyorum yani hangi kodu yazacağımı bilmiyorum
"//Include Libraries
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
//create an RF24 object
RF24 radio(9, 8); // CE, CSN
//address through which two modules communicate.
const byte address[6] = "00001";
void setup()
{
radio.begin();
//set the address
radio.openWritingPipe(address);
//Set module as transmitter
radio.stopListening();
}
void loop()
{
//Send message to receiver
const char text[] = "Hello World";
radio.write(&text, sizeof(text));
delay(1000);
}
örneğin bu kod sadece nrf için değil mi servo ve joystick içinde ayrı kodlar atmalıyım değil mi
yardımlarınız için teşkkürler