#include "BluetoothSerial.h"
BluetoothSerial Serial3;
#define REMOTEXY_MODE__HESP32BLT
#include <RemoteXY.h>
#define REMOTEXY_SERIAL Serial3
#define REMOTEXY_SERIAL_SPEED 9600
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] = {255, 8, 0, 1, 0, 46, 1, 13, 25, 2, 2, 1, 3, 4, 17, 10, 9, 3, 47, 9, 2, 26, 31, 31, 79, 78, 0, 79, 70, 70, 0, 7, 53, 79, 9, 16, 5, 40, 49, 20, 7, 2, 26, 2, 3, 6, 70, 28, 6, 31, 5, 63, 6, 34, 2, 26, 129, 0, 76, 2, 20, 5, 42, 44, 16, 4, 28, 208, 173, 209, 132, 208, 181, 208, 186, 209, 130, 209, 139, 0, 2, 1, 26, 9, 19, 5, 35, 21, 26, 5, 2, 26, 31, 31, 79, 78, 0, 79, 70, 70, 0, 129, 0, 24, 2, 22, 5, 40, 16, 13, 4, 28, 208, 158, 208, 177, 209, 128, 208, 176, 209, 130, 208, 189, 208, 190, 0, 4, 0, 88, 26, 5, 33, 49, 63, 5, 34, 2, 28, 129, 0, 82, 22, 16, 4, 43, 58, 16, 4, 28, 208, 175, 209, 128, 208, 186, 208, 190, 209, 129, 209, 130, 209, 140, 0, 129, 0, 8, 18, 19, 4, 8, 16, 19, 4, 28, 208, 161, 208, 186, 208, 190, 209, 128, 208, 190, 209, 129, 209, 130, 209, 140, 0, 3, 134, 2, 23, 31, 6, 2, 21, 30, 6, 2, 26, 2, 1, 52, 9, 20, 5, 35, 35, 26, 5, 2, 26, 31, 31, 79, 78, 0, 79, 70, 70, 0, 129, 0, 54, 2, 15, 5, 42, 30, 19, 4, 28, 208, 146, 32, 209, 130, 208, 176, 208, 186, 209, 130, 0, 129, 0, 68, 22, 9, 4, 3, 58, 10, 4, 28, 208, 166, 208, 178, 208, 181, 209, 130, 0, 66, 130, 7, 41, 19, 15, 9, 40, 17, 13, 2, 26, 129, 0, 7, 35, 19, 4, 3, 32, 18, 6, 28, 208, 159, 209, 128, 208, 190, 208, 178, 208, 181, 209, 128, 208, 186, 208, 176, 0};
struct
{
unsigned char switch_1;
int16_t edit_1;
unsigned char select_1;
unsigned char switch_2;
signed char slider_2;
unsigned char select_2;
unsigned char switch_3;
signed char level_1;
unsigned char connect_flag;
}
RemoteXY;
#pragma pack(pop)
void setup()
{
Serial3.begin("RemoteXY");
RemoteXY_Init ();
}
void loop()
{
RemoteXY_Handler ();
//Плата:1
RemoteXY.level_1 = 0;
}
bool _isTimer(unsigned long startTime, unsigned long period)
{
unsigned long currentTime;
currentTime = millis();
if (currentTime>= startTime)
{
return (currentTime>=(startTime + period));
}
else
{
return (currentTime >=(4294967295-startTime+period));
}
}