I got it working, it is clunky, and not nice, but it works....
//////////////////////////////////////////////
// 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 8
#define REMOTEXY_SERIAL_TX 9
#define REMOTEXY_SERIAL_SPEED 9600
// RemoteXY configurate
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
{ 255,8,0,11,0,50,0,8,13,0,
7,44,11,9,20,5,2,26,2,2,
7,44,38,9,20,5,2,26,2,2,
129,0,33,9,3,6,8,120,0,129,
0,60,9,3,6,8,61,0,67,4,
67,9,20,5,2,26,11 };
// this structure defines all the variables of your control interface
struct {
// input variable
float edit_1;
float edit_2;
// output variable
char text_1[11]; // string UTF8 end zero
// other variable
uint8_t connect_flag; // =1 if wire connected, else =0
} RemoteXY;
#pragma pack(pop)
/////////////////////////////////////////////
// END RemoteXY include //
/////////////////////////////////////////////
void setup() {
// put your setup code here, to run once:
RemoteXY_Init ();
}
void loop() {
// put your main code here, to run repeatedly:
RemoteXY_Handler ();
float Result = RemoteXY.edit_1 * RemoteXY.edit_2;
String temp = String(Result, 4);
temp.toCharArray(RemoteXY.text_1, 11);
}
... and the RemoteXY app is here....
http://remotexy.com/en/editor/497517db0 … c15e026da/
enjoy !!
EDIT : I did it as multiply, not divide, modify to suit
2B, or not 2B, that is the pencil ...