hi guys, sorry for all of the questions I ask,
but I got another something in my mind.
I got a rc plane project (some of you might know) and I'm trying to start the programming part in my transmitter but I got this problem on the void loop()
#include <nRF24L01.h>
#include <printf.h>
#include <RF24.h>
#include <RF24_config.h>
#include <SPI.h>
// deleration of the pins of the module
RF24 radio(7, 8) // CE and CSN are connected on these pin
const byte address[6] = "00001" // the address of the module
// define joystick pins
int joyX = 0;
int joyY = 1;
// variable to read values from joystick
int joyVal;
void setup()
{
pinMode(joyX, INPUT)
pinMode(joyY, INPUT)
}
void loop()
{
joyVal = analogRead(joyX);
joyval = map(joyval, 0, 1028, 0, 180); // servo values between 0 - 180
// this is where I send "joyval"
}
the problem is I don't know how to send this (at the "// this is where I send joyval" part)
Is my code wrong?
sorry for the interruption guys,