Topic: Library fault
When is use an generated code.
it gives me an compilation error about the library.
Someone knows this problem?
//////////////////////////////////////////////
// RemoteXY include library //
//////////////////////////////////////////////
// RemoteXY select connection mode and include library
#define REMOTEXY_MODE__SOFTSERIAL
#include <SoftwareSerial.h>
#include <RemoteXY.h>
// RemoteXY connection settings
#define REMOTEXY_SERIAL_RX 2
#define REMOTEXY_SERIAL_TX 3
#define REMOTEXY_SERIAL_SPEED 9600
// RemoteXY configurate
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] = // 52 bytes
{ 255,5,0,0,0,45,0,16,31,0,3,3,4,3,11,30,2,26,5,0,
62,16,30,30,2,26,1,10,48,2,44,15,15,4,26,31,79,78,0,31,
79,70,70,0,4,0,20,3,10,29,2,26 };
// this structure defines all the variables and events of your control interface
struct {
// input variables
uint8_t Mode; // =0 if select position A, =1 if position B, =2 if position C, ...
int8_t joystick_x; // from -100 to 100
int8_t joystick_y; // from -100 to 100
uint8_t Knipper; // =1 if state is ON, else =0
int8_t Closed; // =0..100 slider position
// other variable
uint8_t connect_flag; // =1 if wire connected, else =0
} RemoteXY;
#pragma pack(pop)
/////////////////////////////////////////////
// END RemoteXY include //
/////////////////////////////////////////////
void setup()
{
RemoteXY_Init ();
// TODO you setup code
}
void loop()
{
RemoteXY_Handler ();
Fout:
In file included from C:\Users\jogem\OneDrive\Documenten\Arduino\RemoteXY\RemoteXY.ino:26:0:
C:\Users\jogem\OneDrive\Documenten\Arduino\RemoteXY\RemoteXY.ino: In function 'void setup()':
c:\Users\jogem\OneDrive\Documenten\Arduino\libraries\RemoteXY\src/RemoteXY.h:177:117: error: expected type-specifier before 'CRemoteXYStream_SoftSerial'
#define RemoteXY_Init() remotexy = new CRemoteXY (RemoteXY_CONF_PROGMEM, &RemoteXY, REMOTEXY_ACCESS_PASSWORD, new CRemoteXYStream_SoftSerial (REMOTEXY_SERIAL_RX, REMOTEXY_SERIAL_TX, REMOTEXY_SERIAL_SPEED))
^
C:\Users\jogem\OneDrive\Documenten\Arduino\RemoteXY\RemoteXY.ino:65:3: note: in expansion of macro 'RemoteXY_Init'
RemoteXY_Init ();
^~~~~~~~~~~~~
exit status 1
Compilation error: exit status 1