Правильный скетч для примера 3, нога -9 :
/////////////////////////////////////////////
// RemoteXY include library //
/////////////////////////////////////////////
/* RemoteXY select connection mode and include library */
#define REMOTEXY_MODE__SERIAL
#include <RemoteXY.h>
/* RemoteXY connection settings */
#define REMOTEXY_SERIAL Serial
#define REMOTEXY_SERIAL_SPEED 9600
/* RemoteXY configurate */
unsigned char RemoteXY_CONF[] =
{ 1,0,9,0,1,5,4,128,4,11
,90,20,2 };
/* this structure defines all the variables of your control interface */
struct {
/* input variable */
unsigned char slider_1; /* =0..100 slider position */
/* other variable */
unsigned char connect_flag; /* =1 if wire connected, else =0 */
} RemoteXY;
/////////////////////////////////////////////
// END RemoteXY include //
/////////////////////////////////////////////
#include <Servo.h>
Servo myservo;
void setup()
{
RemoteXY_Init ();
// TODO you setup code
myservo.attach(9);
RemoteXY.slider_1 = 50;
}
void loop()
{
RemoteXY_Handler ();
// TODO you loop code
// use the RemoteXY structure for data transfer
int ms = RemoteXY.slider_1*20+500;
myservo.writeMicroseconds(ms);
}