Здравствуйте.Прилагаю 2 скрипта ,один (pr8) не коннектится,второй (pr7) работает , версия remotxy платная.Спасибо.
первый-pr8:
#define REMOTEXY_MODE__HARDSERIAL
#include <RemoteXY.h>
#define REMOTEXY_SERIAL Serial
#define REMOTEXY_SERIAL_SPEED 9600
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] = {1, 264, 173, 1, 8, 13, 0, 130, 1, 86, 2, 7, 7, 17, 130, 1, 89, 9, 9, 8, 17, 1, 0, 47, 50, 8, 8, 2, 31, 88, 0, 130, 1, 2, 9, 9, 8, 17, 130, 1, 11, 9, 9, 8, 17, 130, 1, 8, 2, 7, 7, 17, 130, 1, 23, 9, 9, 8, 17, 130, 1, 31, 9, 9, 8, 17, 130, 1, 27, 2, 8, 7, 17, 130, 1, 43, 9, 8, 8, 17, 130, 1, 51, 9, 8, 8, 17, 130, 1, 47, 2, 8, 7, 17, 130, 1, 62, 9, 8, 8, 17, 130, 1, 70, 9, 8, 8, 17, 130, 1, 66, 2, 7, 7, 17, 130, 1, 81, 9, 8, 8, 17, 129, 0, 74, 58, 18, 3, 1, 69, 76, 84, 69, 76, 46, 76, 46, 84, 46, 68, 0, 129, 0, 46, 59, 10, 3, 17, 82, 69, 83, 69, 84, 0, 67, 5, 4, 12, 5, 5, 2, 26, 11, 67, 5, 13, 12, 5, 5, 2, 26, 11, 67, 5, 9, 3, 5, 5, 2, 35, 11, 67, 5, 24, 12, 5, 5, 2, 26, 11, 67, 5, 33, 12, 5, 5, 2, 26, 11, 67, 5, 28, 3, 5, 5, 2, 35, 11, 67, 5, 44, 12, 5, 5, 2, 26, 11, 67, 5, 52, 12, 5, 5, 2, 26, 11, 67, 5, 49, 3, 5, 5, 2, 35, 11, 67, 5, 63, 12, 5, 5, 2, 26, 11, 67, 5, 72, 12, 5, 5, 2, 26, 11, 67, 5, 67, 3, 5, 5, 2, 35, 11, 67, 5, 83, 12, 5, 5, 2, 26, 11, 67, 5, 91, 12, 5, 5, 2, 26, 11, 67, 5, 87, 3, 5, 5, 2, 35, 11, 130, 1, 1, 32, 9, 8, 17, 130, 1, 10, 32, 9, 8, 17, 130, 1, 7, 25, 7, 7, 17, 130, 1, 42, 32, 9, 8, 17, 130, 1, 51, 32, 9, 8, 17, 130, 1, 47, 25, 8, 7, 17, 130, 1, 81, 31, 8, 8, 17, 130, 1, 89, 31, 8, 8, 17, 130, 1, 85, 24, 8, 7, 17, 67, 5, 3, 35, 5, 5, 2, 26, 11, 67, 5, 12, 35, 5, 5, 2, 26, 11, 67, 5, 8, 26, 5, 5, 2, 35, 11, 67, 5, 43, 35, 5, 5, 2, 26, 11, 67, 5, 53, 35, 5, 5, 2, 26, 11, 67, 5, 48, 26, 5, 5, 2, 35, 11, 67, 5, 82, 34, 5, 5, 2, 26, 11, 67, 5, 90, 34, 5, 5, 2, 26, 11, 67, 5, 87, 25, 5, 5, 2, 35, 11};
struct {
unsigned char button_1;
char text_1[11];
char text_2[11];
char text_3[11];
char text_4[11];
char text_5[11];
char text_6[11];
char text_7[11];
char text_8[11];
char text_9[11];
char text_10[11];
char text_11[11];
char text_12[11];
char text_13[11];
char text_14[11];
char text_15[11];
char text_16[11];
char text_17[11];
char text_18[11];
char text_19[11];
char text_20[11];
char text_21[11];
char text_22[11];
char text_23[11];
char text_24[11];
unsigned char connect_flag;
} RemoteXY;
#pragma pack(pop)
int _gtv1;
int _gtv2;
int _gtv3;
bool _gtv4;
int _gtv5;
int _gtv6;
int _gtv7;
int _gtv8;
int _gtv10;
int _gtv11;
int _gtv12;
int _gtv13;
int _gtv14;
int _gtv15;
int _gtv16;
int _gtv17;
int _gtv18;
int _gtv19;
int _gtv20;
int _gtv21;
int _gtv22;
int _gtv23;
int _gtv24;
int _gtv25;
int _gtv26;
bool _bounseInputD11S = 0;
bool _bounseInputD11O = 0;
unsigned long _bounseInputD11P = 0UL;
bool _count9I = 0;
int _count9P = 0;
bool _gen1I = 0;
bool _gen1O = 0;
unsigned long _gen1P = 0UL;
bool _bounseInputD3S = 0;
bool _bounseInputD3O = 0;
unsigned long _bounseInputD3P = 0UL;
bool _bounseInputD21S = 0;
bool _bounseInputD21O = 0;
unsigned long _bounseInputD21P = 0UL;
bool _bounseInputD22S = 0;
bool _bounseInputD22O = 0;
unsigned long _bounseInputD22P = 0UL;
bool _bounseInputD8S = 0;
bool _bounseInputD8O = 0;
unsigned long _bounseInputD8P = 0UL;
bool _bounseInputD27S = 0;
bool _bounseInputD27O = 0;
unsigned long _bounseInputD27P = 0UL;
bool _bounseInputD4S = 0;
bool _bounseInputD4O = 0;
unsigned long _bounseInputD4P = 0UL;
bool _count24I = 0;
int _count24P = 0;
bool _count13I = 0;
int _count13P = 0;
bool _bounseInputD17S = 0;
bool _bounseInputD17O = 0;
unsigned long _bounseInputD17P = 0UL;
bool _count21I = 0;
int _count21P = 0;
bool _count4I = 0;
int _count4P = 0;
bool _count23I = 0;
int _count23P = 0;
bool _bounseInputD7S = 0;
bool _bounseInputD7O = 0;
unsigned long _bounseInputD7P = 0UL;
bool _count12I = 0;
int _count12P = 0;
bool _count2I = 0;
int _count2P = 0;
bool _bounseInputD12S = 0;
bool _bounseInputD12O = 0;
unsigned long _bounseInputD12P = 0UL;
bool _bounseInputD23S = 0;
bool _bounseInputD23O = 0;
unsigned long _bounseInputD23P = 0UL;
bool _bounseInputD25S = 0;
bool _bounseInputD25O = 0;
unsigned long _bounseInputD25P = 0UL;
bool _count16I = 0;
int _count16P = 0;
bool _bounseInputD15S = 0;
bool _bounseInputD15O = 0;
unsigned long _bounseInputD15P = 0UL;
bool _count15I = 0;
int _count15P = 0;
bool _bounseInputD18S = 0;
bool _bounseInputD18O = 0;
unsigned long _bounseInputD18P = 0UL;
bool _count3I = 0;
int _count3P = 0;
bool _count6I = 0;
int _count6P = 0;
bool _count8I = 0;
int _count8P = 0;
bool _count14I = 0;
int _count14P = 0;
bool _count5I = 0;
int _count5P = 0;
bool _bounseInputD10S = 0;
bool _bounseInputD10O = 0;
unsigned long _bounseInputD10P = 0UL;
bool _count7I = 0;
int _count7P = 0;
bool _bounseInputD14S = 0;
bool _bounseInputD14O = 0;
unsigned long _bounseInputD14P = 0UL;
bool _count1I = 0;
int _count1P = 0;
bool _bounseInputD20S = 0;
bool _bounseInputD20O = 0;
unsigned long _bounseInputD20P = 0UL;
bool _bounseInputD24S = 0;
bool _bounseInputD24O = 0;
unsigned long _bounseInputD24P = 0UL;
bool _bounseInputD26S = 0;
bool _bounseInputD26O = 0;
unsigned long _bounseInputD26P = 0UL;
bool _bounseInputD9S = 0;
bool _bounseInputD9O = 0;
unsigned long _bounseInputD9P = 0UL;
bool _count18I = 0;
int _count18P = 0;
bool _count20I = 0;
int _count20P = 0;
bool _count22I = 0;
int _count22P = 0;
bool _count11I = 0;
int _count11P = 0;
bool _count17I = 0;
int _count17P = 0;
bool _bounseInputD19S = 0;
bool _bounseInputD19O = 0;
unsigned long _bounseInputD19P = 0UL;
bool _bounseInputD16S = 0;
bool _bounseInputD16O = 0;
unsigned long _bounseInputD16P = 0UL;
bool _count19I = 0;
int _count19P = 0;
bool _bounseInputD5S = 0;
bool _bounseInputD5O = 0;
unsigned long _bounseInputD5P = 0UL;
bool _bounseInputD6S = 0;
bool _bounseInputD6O = 0;
unsigned long _bounseInputD6P = 0UL;
bool _count10I = 0;
int _count10P = 0;
void setup()
{
RemoteXY_Init ();
pinMode(3, INPUT);
digitalWrite(3, HIGH);
pinMode(4, INPUT);
digitalWrite(4, HIGH);
pinMode(5, INPUT);
digitalWrite(5, HIGH);
pinMode(6, INPUT);
digitalWrite(6, HIGH);
pinMode(7, INPUT);
digitalWrite(7, HIGH);
pinMode(8, INPUT);
digitalWrite(8, HIGH);
pinMode(9, INPUT);
digitalWrite(9, HIGH);
pinMode(10, INPUT);
digitalWrite(10, HIGH);
pinMode(11, INPUT);
digitalWrite(11, HIGH);
pinMode(12, INPUT);
digitalWrite(12, HIGH);
pinMode(14, INPUT);
digitalWrite(14, HIGH);
pinMode(15, INPUT);
digitalWrite(15, HIGH);
pinMode(16, INPUT);
digitalWrite(16, HIGH);
pinMode(17, INPUT);
digitalWrite(17, HIGH);
pinMode(18, INPUT);
digitalWrite(18, HIGH);
pinMode(19, INPUT);
digitalWrite(19, HIGH);
pinMode(20, INPUT);
digitalWrite(20, HIGH);
pinMode(21, INPUT);
digitalWrite(21, HIGH);
pinMode(22, INPUT);
digitalWrite(22, HIGH);
pinMode(23, INPUT);
digitalWrite(23, HIGH);
pinMode(24, INPUT);
digitalWrite(24, HIGH);
pinMode(25, INPUT);
digitalWrite(25, HIGH);
pinMode(26, INPUT);
digitalWrite(26, HIGH);
pinMode(27, INPUT);
digitalWrite(27, HIGH);
_bounseInputD20O = digitalRead(20);
_bounseInputD8O = digitalRead(8);
_bounseInputD22O = digitalRead(22);
_bounseInputD24O = digitalRead(24);
_bounseInputD27O = digitalRead(27);
_bounseInputD3O = digitalRead(3);
_bounseInputD4O = digitalRead(4);
_bounseInputD12O = digitalRead(12);
_bounseInputD10O = digitalRead(10);
_bounseInputD25O = digitalRead(25);
_bounseInputD5O = digitalRead(5);
_bounseInputD19O = digitalRead(19);
_bounseInputD17O = digitalRead(17);
_bounseInputD7O = digitalRead(7);
_bounseInputD15O = digitalRead(15);
_bounseInputD21O = digitalRead(21);
_bounseInputD9O = digitalRead(9);
_bounseInputD23O = digitalRead(23);
_bounseInputD26O = digitalRead(26);
_bounseInputD14O = digitalRead(14);
_bounseInputD11O = digitalRead(11);
_bounseInputD18O = digitalRead(18);
_bounseInputD16O = digitalRead(16);
_bounseInputD6O = digitalRead(6);
}
void loop()
{RemoteXY_Handler ();
bool _bounceInputTmpD20 = (digitalRead (20));
if (_bounseInputD20S)
{
if (millis() >= (_bounseInputD20P + 40))
{_bounseInputD20O= _bounceInputTmpD20; _bounseInputD20S=0;}
}
else
{
if (_bounceInputTmpD20 != _bounseInputD20O )
{_bounseInputD20S=1; _bounseInputD20P = millis();}
}
bool _bounceInputTmpD8 = (digitalRead (8));
if (_bounseInputD8S)
{
if (millis() >= (_bounseInputD8P + 40))
{_bounseInputD8O= _bounceInputTmpD8; _bounseInputD8S=0;}
}
else
{
if (_bounceInputTmpD8 != _bounseInputD8O )
{_bounseInputD8S=1; _bounseInputD8P = millis();}
}
bool _bounceInputTmpD22 = (digitalRead (22));
if (_bounseInputD22S)
{
if (millis() >= (_bounseInputD22P + 40))
{_bounseInputD22O= _bounceInputTmpD22; _bounseInputD22S=0;}
}
else
{
if (_bounceInputTmpD22 != _bounseInputD22O )
{_bounseInputD22S=1; _bounseInputD22P = millis();}
}
bool _bounceInputTmpD24 = (digitalRead (24));
if (_bounseInputD24S)
{
if (millis() >= (_bounseInputD24P + 40))
{_bounseInputD24O= _bounceInputTmpD24; _bounseInputD24S=0;}
}
else
{
if (_bounceInputTmpD24 != _bounseInputD24O )
{_bounseInputD24S=1; _bounseInputD24P = millis();}
}
bool _bounceInputTmpD27 = (digitalRead (27));
if (_bounseInputD27S)
{
if (millis() >= (_bounseInputD27P + 40))
{_bounseInputD27O= _bounceInputTmpD27; _bounseInputD27S=0;}
}
else
{
if (_bounceInputTmpD27 != _bounseInputD27O )
{_bounseInputD27S=1; _bounseInputD27P = millis();}
}
bool _bounceInputTmpD4 = (digitalRead (4));
if (_bounseInputD4S)
{
if (millis() >= (_bounseInputD4P + 40))
{_bounseInputD4O= _bounceInputTmpD4; _bounseInputD4S=0;}
}
else
{
if (_bounceInputTmpD4 != _bounseInputD4O )
{_bounseInputD4S=1; _bounseInputD4P = millis();}
}
bool _bounceInputTmpD3 = (digitalRead (3));
if (_bounseInputD3S)
{
if (millis() >= (_bounseInputD3P + 40))
{_bounseInputD3O= _bounceInputTmpD3; _bounseInputD3S=0;}
}
else
{
if (_bounceInputTmpD3 != _bounseInputD3O )
{_bounseInputD3S=1; _bounseInputD3P = millis();}
}
bool _bounceInputTmpD12 = (digitalRead (12));
if (_bounseInputD12S)
{
if (millis() >= (_bounseInputD12P + 40))
{_bounseInputD12O= _bounceInputTmpD12; _bounseInputD12S=0;}
}
else
{
if (_bounceInputTmpD12 != _bounseInputD12O )
{_bounseInputD12S=1; _bounseInputD12P = millis();}
}
bool _bounceInputTmpD10 = (digitalRead (10));
if (_bounseInputD10S)
{
if (millis() >= (_bounseInputD10P + 40))
{_bounseInputD10O= _bounceInputTmpD10; _bounseInputD10S=0;}
}
else
{
if (_bounceInputTmpD10 != _bounseInputD10O )
{_bounseInputD10S=1; _bounseInputD10P = millis();}
}
bool _bounceInputTmpD25 = (digitalRead (25));
if (_bounseInputD25S)
{
if (millis() >= (_bounseInputD25P + 40))
{_bounseInputD25O= _bounceInputTmpD25; _bounseInputD25S=0;}
}
else
{
if (_bounceInputTmpD25 != _bounseInputD25O )
{_bounseInputD25S=1; _bounseInputD25P = millis();}
}
bool _bounceInputTmpD5 = (digitalRead (5));
if (_bounseInputD5S)
{
if (millis() >= (_bounseInputD5P + 40))
{_bounseInputD5O= _bounceInputTmpD5; _bounseInputD5S=0;}
}
else
{
if (_bounceInputTmpD5 != _bounseInputD5O )
{_bounseInputD5S=1; _bounseInputD5P = millis();}
}
bool _bounceInputTmpD19 = (digitalRead (19));
if (_bounseInputD19S)
{
if (millis() >= (_bounseInputD19P + 40))
{_bounseInputD19O= _bounceInputTmpD19; _bounseInputD19S=0;}
}
else
{
if (_bounceInputTmpD19 != _bounseInputD19O )
{_bounseInputD19S=1; _bounseInputD19P = millis();}
}
bool _bounceInputTmpD17 = (digitalRead (17));
if (_bounseInputD17S)
{
if (millis() >= (_bounseInputD17P + 40))
{_bounseInputD17O= _bounceInputTmpD17; _bounseInputD17S=0;}
}
else
{
if (_bounceInputTmpD17 != _bounseInputD17O )
{_bounseInputD17S=1; _bounseInputD17P = millis();}
}
bool _bounceInputTmpD7 = (digitalRead (7));
if (_bounseInputD7S)
{
if (millis() >= (_bounseInputD7P + 40))
{_bounseInputD7O= _bounceInputTmpD7; _bounseInputD7S=0;}
}
else
{
if (_bounceInputTmpD7 != _bounseInputD7O )
{_bounseInputD7S=1; _bounseInputD7P = millis();}
}
bool _bounceInputTmpD15 = (digitalRead (15));
if (_bounseInputD15S)
{
if (millis() >= (_bounseInputD15P + 40))
{_bounseInputD15O= _bounceInputTmpD15; _bounseInputD15S=0;}
}
else
{
if (_bounceInputTmpD15 != _bounseInputD15O )
{_bounseInputD15S=1; _bounseInputD15P = millis();}
}
bool _bounceInputTmpD21 = (digitalRead (21));
if (_bounseInputD21S)
{
if (millis() >= (_bounseInputD21P + 40))
{_bounseInputD21O= _bounceInputTmpD21; _bounseInputD21S=0;}
}
else
{
if (_bounceInputTmpD21 != _bounseInputD21O )
{_bounseInputD21S=1; _bounseInputD21P = millis();}
}
bool _bounceInputTmpD9 = (digitalRead (9));
if (_bounseInputD9S)
{
if (millis() >= (_bounseInputD9P + 40))
{_bounseInputD9O= _bounceInputTmpD9; _bounseInputD9S=0;}
}
else
{
if (_bounceInputTmpD9 != _bounseInputD9O )
{_bounseInputD9S=1; _bounseInputD9P = millis();}
}
bool _bounceInputTmpD23 = (digitalRead (23));
if (_bounseInputD23S)
{
if (millis() >= (_bounseInputD23P + 40))
{_bounseInputD23O= _bounceInputTmpD23; _bounseInputD23S=0;}
}
else
{
if (_bounceInputTmpD23 != _bounseInputD23O )
{_bounseInputD23S=1; _bounseInputD23P = millis();}
}
bool _bounceInputTmpD26 = (digitalRead (26));
if (_bounseInputD26S)
{
if (millis() >= (_bounseInputD26P + 40))
{_bounseInputD26O= _bounceInputTmpD26; _bounseInputD26S=0;}
}
else
{
if (_bounceInputTmpD26 != _bounseInputD26O )
{_bounseInputD26S=1; _bounseInputD26P = millis();}
}
bool _bounceInputTmpD14 = (digitalRead (14));
if (_bounseInputD14S)
{
if (millis() >= (_bounseInputD14P + 40))
{_bounseInputD14O= _bounceInputTmpD14; _bounseInputD14S=0;}
}
else
{
if (_bounceInputTmpD14 != _bounseInputD14O )
{_bounseInputD14S=1; _bounseInputD14P = millis();}
}
bool _bounceInputTmpD11 = (digitalRead (11));
if (_bounseInputD11S)
{
if (millis() >= (_bounseInputD11P + 40))
{_bounseInputD11O= _bounceInputTmpD11; _bounseInputD11S=0;}
}
else
{
if (_bounceInputTmpD11 != _bounseInputD11O )
{_bounseInputD11S=1; _bounseInputD11P = millis();}
}
bool _bounceInputTmpD18 = (digitalRead (18));
if (_bounseInputD18S)
{
if (millis() >= (_bounseInputD18P + 40))
{_bounseInputD18O= _bounceInputTmpD18; _bounseInputD18S=0;}
}
else
{
if (_bounceInputTmpD18 != _bounseInputD18O )
{_bounseInputD18S=1; _bounseInputD18P = millis();}
}
bool _bounceInputTmpD16 = (digitalRead (16));
if (_bounseInputD16S)
{
if (millis() >= (_bounseInputD16P + 40))
{_bounseInputD16O= _bounceInputTmpD16; _bounseInputD16S=0;}
}
else
{
if (_bounceInputTmpD16 != _bounseInputD16O )
{_bounseInputD16S=1; _bounseInputD16P = millis();}
}
bool _bounceInputTmpD6 = (digitalRead (6));
if (_bounseInputD6S)
{
if (millis() >= (_bounseInputD6P + 40))
{_bounseInputD6O= _bounceInputTmpD6; _bounseInputD6S=0;}
}
else
{
if (_bounceInputTmpD6 != _bounseInputD6O )
{_bounseInputD6S=1; _bounseInputD6P = millis();}
}
//Плата:1
if (!(_bounseInputD27O))
{
if (! _count24I)
{
_count24P = _count24P+1;
_count24I = 1;
}
}
else
{
_count24I=0;
}
if (_gtv4) _count24P = 0;
_gtv26 = _count24P;
if (!(_bounseInputD26O))
{
if (! _count23I)
{
_count23P = _count23P+1;
_count23I = 1;
}
}
else
{
_count23I=0;
}
if (_gtv4) _count23P = 0;
_gtv25 = _count23P;
if (!(_bounseInputD25O))
{
if (! _count22I)
{
_count22P = _count22P+1;
_count22I = 1;
}
}
else
{
_count22I=0;
}
if (_gtv4) _count22P = 0;
_gtv24 = _count22P;
if (!(_bounseInputD24O))
{
if (! _count21I)
{
_count21P = _count21P+1;
_count21I = 1;
}
}
else
{
_count21I=0;
}
if (_gtv4) _count21P = 0;
_gtv23 = _count21P;
if (!(_bounseInputD23O))
{
if (! _count20I)
{
_count20P = _count20P+1;
_count20I = 1;
}
}
else
{
_count20I=0;
}
if (_gtv4) _count20P = 0;
_gtv22 = _count20P;
if (!(_bounseInputD22O))
{
if (! _count19I)
{
_count19P = _count19P+1;
_count19I = 1;
}
}
else
{
_count19I=0;
}
if (_gtv4) _count19P = 0;
_gtv21 = _count19P;
if (!(_bounseInputD21O))
{
if (! _count18I)
{
_count18P = _count18P+1;
_count18I = 1;
}
}
else
{
_count18I=0;
}
if (_gtv4) _count18P = 0;
_gtv20 = _count18P;
if (!(_bounseInputD20O))
{
if (! _count17I)
{
_count17P = _count17P+1;
_count17I = 1;
}
}
else
{
_count17I=0;
}
if (_gtv4) _count17P = 0;
_gtv19 = _count17P;
if (!(_bounseInputD19O))
{
if (! _count16I)
{
_count16P = _count16P+1;
_count16I = 1;
}
}
else
{
_count16I=0;
}
if (_gtv4) _count16P = 0;
_gtv18 = _count16P;
if (!(_bounseInputD18O))
{
if (! _count15I)
{
_count15P = _count15P+1;
_count15I = 1;
}
}
else
{
_count15I=0;
}
if (_gtv4) _count15P = 0;
_gtv17 = _count15P;
if (!(_bounseInputD17O))
{
if (! _count14I)
{
_count14P = _count14P+1;
_count14I = 1;
}
}
else
{
_count14I=0;
}
if (_gtv4) _count14P = 0;
_gtv16 = _count14P;
if (!(_bounseInputD16O))
{
if (! _count13I)
{
_count13P = _count13P+1;
_count13I = 1;
}
}
else
{
_count13I=0;
}
if (_gtv4) _count13P = 0;
_gtv15 = _count13P;
if (!(_bounseInputD15O))
{
if (! _count12I)
{
_count12P = _count12P+1;
_count12I = 1;
}
}
else
{
_count12I=0;
}
if (_gtv4) _count12P = 0;
_gtv14 = _count12P;
if (!(_bounseInputD14O))
{
if (! _count11I)
{
_count11P = _count11P+1;
_count11I = 1;
}
}
else
{
_count11I=0;
}
if (_gtv4) _count11P = 0;
_gtv13 = _count11P;
if (!(_bounseInputD12O))
{
if (! _count10I)
{
_count10P = _count10P+1;
_count10I = 1;
}
}
else
{
_count10I=0;
}
if (_gtv4) _count10P = 0;
_gtv12 = _count10P;
if (!(_bounseInputD11O))
{
if (! _count9I)
{
_count9P = _count9P+1;
_count9I = 1;
}
}
else
{
_count9I=0;
}
if (_gtv4) _count9P = 0;
_gtv11 = _count9P;
if (!(_bounseInputD10O))
{
if (! _count8I)
{
_count8P = _count8P+1;
_count8I = 1;
}
}
else
{
_count8I=0;
}
if (_gtv4) _count8P = 0;
_gtv10 = _count8P;
if (!(_bounseInputD9O))
{
if (! _count7I)
{
_count7P = _count7P+1;
_count7I = 1;
}
}
else
{
_count7I=0;
}
if (_gtv4) _count7P = 0;
_gtv8 = _count7P;
if (!(_bounseInputD8O))
{
if (! _count6I)
{
_count6P = _count6P+1;
_count6I = 1;
}
}
else
{
_count6I=0;
}
if (_gtv4) _count6P = 0;
_gtv7 = _count6P;
if (!(_bounseInputD7O))
{
if (! _count5I)
{
_count5P = _count5P+1;
_count5I = 1;
}
}
else
{
_count5I=0;
}
if (_gtv4) _count5P = 0;
_gtv6 = _count5P;
if (!(_bounseInputD6O))
{
if (! _count4I)
{
_count4P = _count4P+1;
_count4I = 1;
}
}
else
{
_count4I=0;
}
if (_gtv4) _count4P = 0;
_gtv5 = _count4P;
if (!(_bounseInputD5O))
{
if (! _count3I)
{
_count3P = _count3P+1;
_count3I = 1;
}
}
else
{
_count3I=0;
}
if (_gtv4) _count3P = 0;
_gtv3 = _count3P;
if (!(_bounseInputD4O))
{
if (! _count2I)
{
_count2P = _count2P+1;
_count2I = 1;
}
}
else
{
_count2I=0;
}
if (_gtv4) _count2P = 0;
_gtv2 = _count2P;
if (!(_bounseInputD3O))
{
if (! _count1I)
{
_count1P = _count1P+1;
_count1I = 1;
}
}
else
{
_count1I=0;
}
if (_gtv4) _count1P = 0;
_gtv1 = _count1P;
((String(_gtv1, DEC))).toCharArray((RemoteXY.text_1), 11);
((String(_gtv2, DEC))).toCharArray((RemoteXY.text_2), 11);
((String(_gtv3, DEC))).toCharArray((RemoteXY.text_3), 11);
((String(_gtv5, DEC))).toCharArray((RemoteXY.text_4), 11);
((String(_gtv6, DEC))).toCharArray((RemoteXY.text_5), 11);
((String(_gtv7, DEC))).toCharArray((RemoteXY.text_6), 11);
((String(_gtv8, DEC))).toCharArray((RemoteXY.text_7), 11);
((String(_gtv10, DEC))).toCharArray((RemoteXY.text_8), 11);
((String(_gtv11, DEC))).toCharArray((RemoteXY.text_9), 11);
((String(_gtv12, DEC))).toCharArray((RemoteXY.text_10), 11);
((String(_gtv13, DEC))).toCharArray((RemoteXY.text_11), 11);
((String(_gtv14, DEC))).toCharArray((RemoteXY.text_12), 11);
((String(_gtv15, DEC))).toCharArray((RemoteXY.text_13), 11);
((String(_gtv16, DEC))).toCharArray((RemoteXY.text_14), 11);
((String(_gtv17, DEC))).toCharArray((RemoteXY.text_15), 11);
((String(_gtv18, DEC))).toCharArray((RemoteXY.text_16), 11);
((String(_gtv19, DEC))).toCharArray((RemoteXY.text_17), 11);
((String(_gtv20, DEC))).toCharArray((RemoteXY.text_18), 11);
((String(_gtv21, DEC))).toCharArray((RemoteXY.text_19), 11);
((String(_gtv22, DEC))).toCharArray((RemoteXY.text_20), 11);
((String(_gtv23, DEC))).toCharArray((RemoteXY.text_21), 11);
((String(_gtv24, DEC))).toCharArray((RemoteXY.text_22), 11);
((String(_gtv25, DEC))).toCharArray((RemoteXY.text_23), 11);
((String(_gtv26, DEC))).toCharArray((RemoteXY.text_24), 11);
if (1) {if (! _gen1I){_gen1I = 1; _gen1O = 1; _gen1P = millis();}} else { _gen1I = 0 ; _gen1O= 0; } if (_gen1I && _gen1O) _gen1O = !( _isTimer( _gen1P , 1000 ));
_gtv4 = ( ((RemoteXY.button_1)) || (_gen1O) );
}
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));}
}
---------------------------------------------------------------------------------------------
второй pr7:
#define REMOTEXY_MODE__HARDSERIAL
#include <RemoteXY.h>
#define REMOTEXY_SERIAL Serial
#define REMOTEXY_SERIAL_SPEED 9600
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] = {1, 231, 200, 1, 8, 13, 4, 130, 1, 86, 2, 7, 7, 1, 17, 130, 1, 89, 9, 9, 8, 1, 17, 1, 0, 44, 47, 11, 11, 0, 2, 31, 88, 0, 130, 1, 2, 9, 9, 8, 1, 17, 130, 1, 11, 9, 9, 8, 1, 17, 130, 1, 8, 2, 7, 7, 1, 17, 130, 1, 26, 9, 9, 8, 1, 17, 130, 1, 35, 9, 9, 8, 1, 17, 130, 1, 31, 2, 8, 7, 1, 17, 130, 1, 42, 33, 8, 8, 1, 17, 130, 1, 50, 33, 8, 8, 1, 17, 130, 1, 46, 26, 8, 7, 1, 17, 130, 1, 58, 9, 8, 8, 1, 17, 130, 1, 66, 9, 8, 8, 1, 17, 130, 1, 62, 2, 7, 7, 1, 17, 130, 1, 81, 9, 8, 8, 1, 17, 129, 0, 74, 58, 18, 3, 0, 1, 69, 76, 84, 69, 76, 46, 76, 46, 84, 46, 68, 0, 129, 0, 44, 59, 10, 3, 0, 17, 82, 69, 83, 69, 84, 0, 67, 5, 4, 12, 5, 5, 1, 2, 26, 11, 67, 5, 13, 12, 5, 5, 1, 2, 26, 11, 67, 5, 9, 3, 5, 5, 1, 2, 35, 11, 67, 5, 28, 12, 5, 5, 1, 2, 26, 11, 67, 5, 37, 12, 5, 5, 1, 2, 26, 11, 67, 5, 32, 3, 5, 5, 1, 2, 35, 11, 67, 5, 43, 36, 5, 5, 1, 2, 26, 11, 67, 5, 51, 36, 5, 5, 1, 2, 26, 11, 67, 5, 48, 27, 5, 5, 1, 2, 35, 11, 67, 5, 59, 12, 5, 5, 1, 2, 26, 11, 67, 5, 68, 12, 5, 5, 1, 2, 26, 11, 67, 5, 63, 3, 5, 5, 1, 2, 35, 11, 67, 5, 83, 12, 5, 5, 1, 2, 26, 11, 67, 5, 91, 12, 5, 5, 1, 2, 26, 11, 67, 5, 87, 3, 5, 5, 1, 2, 35, 11, 130, 1, 7, 32, 9, 8, 1, 17, 130, 1, 16, 32, 9, 8, 1, 17, 130, 1, 13, 25, 7, 7, 1, 17, 130, 1, 76, 32, 9, 8, 1, 17, 130, 1, 84, 32, 9, 8, 1, 17, 130, 1, 80, 25, 8, 7, 1, 17, 67, 5, 9, 35, 5, 5, 1, 2, 26, 11, 67, 5, 18, 35, 5, 5, 1, 2, 26, 11, 67, 5, 14, 26, 5, 5, 1, 2, 35, 11, 67, 5, 77, 35, 5, 5, 1, 2, 26, 11, 67, 5, 86, 35, 5, 5, 1, 2, 26, 11, 67, 5, 81, 26, 5, 5, 1, 2, 35, 11, 131, 1, 1, 47, 14, 5, 1, 2, 31, 80, 97, 103, 101, 49, 0, 131, 0, 1, 56, 14, 5, 2, 2, 31, 80, 97, 103, 101, 50, 0};
struct {
unsigned char button_1;
char text_1[11];
char text_2[11];
char text_3[11];
char text_4[11];
char text_5[11];
char text_6[11];
char text_7[11];
char text_8[11];
char text_9[11];
char text_10[11];
char text_11[11];
char text_12[11];
char text_13[11];
char text_14[11];
char text_15[11];
char text_16[11];
char text_17[11];
char text_18[11];
char text_19[11];
char text_20[11];
char text_21[11];
unsigned char connect_flag;
} RemoteXY;
#pragma pack(pop)
int _gtv1 = 0;
int _gtv2 = 0;
int _gtv3 = 0;
bool _gtv4;
int _gtv5 = 0;
int _gtv6 = 0;
int _gtv7 = 0;
int _gtv8 = 0;
int _gtv10 = 0;
int _gtv11 = 0;
int _gtv12 = 0;
int _gtv13 = 0;
int _gtv14 = 0;
int _gtv15 = 0;
int _gtv16 = 0;
int _gtv17 = 0;
int _gtv18 = 0;
int _gtv19 = 0;
int _gtv20 = 0;
int _gtv21 = 0;
int _gtv22 = 0;
int _gtv23 = 0;
bool _bounseInputD10S = 0;
bool _bounseInputD10O = 0;
unsigned long _bounseInputD10P = 0UL;
bool _bounseInputD5S = 0;
bool _bounseInputD5O = 0;
unsigned long _bounseInputD5P = 0UL;
bool _bounseInputD18S = 0;
bool _bounseInputD18O = 0;
unsigned long _bounseInputD18P = 0UL;
bool _count10I = 0;
int _count10P = 0;
bool _count1I = 0;
int _count1P = 0;
bool _bounseInputD12S = 0;
bool _bounseInputD12O = 0;
unsigned long _bounseInputD12P = 0UL;
bool _bounseInputD20S = 0;
bool _bounseInputD20O = 0;
unsigned long _bounseInputD20P = 0UL;
bool _gen1I = 0;
bool _gen1O = 0;
unsigned long _gen1P = 0UL;
bool _count17I = 0;
int _count17P = 0;
bool _bounseInputD7S = 0;
bool _bounseInputD7O = 0;
unsigned long _bounseInputD7P = 0UL;
bool _bounseInputD4S = 0;
bool _bounseInputD4O = 0;
unsigned long _bounseInputD4P = 0UL;
bool _count19I = 0;
int _count19P = 0;
bool _count7I = 0;
int _count7P = 0;
bool _bounseInputD22S = 0;
bool _bounseInputD22O = 0;
unsigned long _bounseInputD22P = 0UL;
bool _count14I = 0;
int _count14P = 0;
bool _bounseInputD15S = 0;
bool _bounseInputD15O = 0;
unsigned long _bounseInputD15P = 0UL;
bool _count18I = 0;
int _count18P = 0;
bool _bounseInputD9S = 0;
bool _bounseInputD9O = 0;
unsigned long _bounseInputD9P = 0UL;
bool _count3I = 0;
int _count3P = 0;
bool _count20I = 0;
int _count20P = 0;
bool _bounseInputD17S = 0;
bool _bounseInputD17O = 0;
unsigned long _bounseInputD17P = 0UL;
bool _count11I = 0;
int _count11P = 0;
bool _count4I = 0;
int _count4P = 0;
bool _bounseInputD11S = 0;
bool _bounseInputD11O = 0;
unsigned long _bounseInputD11P = 0UL;
bool _bounseInputD24S = 0;
bool _bounseInputD24O = 0;
unsigned long _bounseInputD24P = 0UL;
bool _count15I = 0;
int _count15P = 0;
bool _bounseInputD6S = 0;
bool _bounseInputD6O = 0;
unsigned long _bounseInputD6P = 0UL;
bool _count2I = 0;
int _count2P = 0;
bool _count8I = 0;
int _count8P = 0;
bool _bounseInputD19S = 0;
bool _bounseInputD19O = 0;
unsigned long _bounseInputD19P = 0UL;
bool _count12I = 0;
int _count12P = 0;
bool _count5I = 0;
int _count5P = 0;
bool _bounseInputD3S = 0;
bool _bounseInputD3O = 0;
unsigned long _bounseInputD3P = 0UL;
bool _bounseInputD14S = 0;
bool _bounseInputD14O = 0;
unsigned long _bounseInputD14P = 0UL;
bool _bounseInputD21S = 0;
bool _bounseInputD21O = 0;
unsigned long _bounseInputD21P = 0UL;
bool _bounseInputD8S = 0;
bool _bounseInputD8O = 0;
unsigned long _bounseInputD8P = 0UL;
bool _bounseInputD16S = 0;
bool _bounseInputD16O = 0;
unsigned long _bounseInputD16P = 0UL;
bool _count21I = 0;
int _count21P = 0;
bool _count9I = 0;
int _count9P = 0;
bool _bounseInputD23S = 0;
bool _bounseInputD23O = 0;
unsigned long _bounseInputD23P = 0UL;
bool _count13I = 0;
int _count13P = 0;
bool _count6I = 0;
int _count6P = 0;
bool _count16I = 0;
int _count16P = 0;
void setup()
{
RemoteXY_Init ();
pinMode(3, INPUT);
digitalWrite(3, HIGH);
pinMode(4, INPUT);
digitalWrite(4, HIGH);
pinMode(5, INPUT);
digitalWrite(5, HIGH);
pinMode(6, INPUT);
digitalWrite(6, HIGH);
pinMode(7, INPUT);
digitalWrite(7, HIGH);
pinMode(8, INPUT);
digitalWrite(8, HIGH);
pinMode(9, INPUT);
digitalWrite(9, HIGH);
pinMode(10, INPUT);
digitalWrite(10, HIGH);
pinMode(11, INPUT);
digitalWrite(11, HIGH);
pinMode(12, INPUT);
digitalWrite(12, HIGH);
pinMode(14, INPUT);
digitalWrite(14, HIGH);
pinMode(15, INPUT);
digitalWrite(15, HIGH);
pinMode(16, INPUT);
digitalWrite(16, HIGH);
pinMode(17, INPUT);
digitalWrite(17, HIGH);
pinMode(18, INPUT);
digitalWrite(18, HIGH);
pinMode(19, INPUT);
digitalWrite(19, HIGH);
pinMode(20, INPUT);
digitalWrite(20, HIGH);
pinMode(21, INPUT);
digitalWrite(21, HIGH);
pinMode(22, INPUT);
digitalWrite(22, HIGH);
pinMode(23, INPUT);
digitalWrite(23, HIGH);
pinMode(24, INPUT);
digitalWrite(24, HIGH);
_bounseInputD10O = digitalRead(10);
_bounseInputD22O = digitalRead(22);
_bounseInputD11O = digitalRead(11);
_bounseInputD17O = digitalRead(17);
_bounseInputD6O = digitalRead(6);
_bounseInputD9O = digitalRead(9);
_bounseInputD15O = digitalRead(15);
_bounseInputD24O = digitalRead(24);
_bounseInputD3O = digitalRead(3);
_bounseInputD16O = digitalRead(16);
_bounseInputD21O = digitalRead(21);
_bounseInputD14O = digitalRead(14);
_bounseInputD19O = digitalRead(19);
_bounseInputD8O = digitalRead(8);
_bounseInputD23O = digitalRead(23);
_bounseInputD5O = digitalRead(5);
_bounseInputD20O = digitalRead(20);
_bounseInputD12O = digitalRead(12);
_bounseInputD18O = digitalRead(18);
_bounseInputD7O = digitalRead(7);
_bounseInputD4O = digitalRead(4);
}
void loop()
{RemoteXY_Handler ();
bool _bounceInputTmpD21 = (digitalRead (21));
if (_bounseInputD21S)
{
if (millis() >= (_bounseInputD21P + 40))
{_bounseInputD21O= _bounceInputTmpD21; _bounseInputD21S=0;}
}
else
{
if (_bounceInputTmpD21 != _bounseInputD21O )
{_bounseInputD21S=1; _bounseInputD21P = millis();}
}
bool _bounceInputTmpD9 = (digitalRead (9));
if (_bounseInputD9S)
{
if (millis() >= (_bounseInputD9P + 40))
{_bounseInputD9O= _bounceInputTmpD9; _bounseInputD9S=0;}
}
else
{
if (_bounceInputTmpD9 != _bounseInputD9O )
{_bounseInputD9S=1; _bounseInputD9P = millis();}
}
bool _bounceInputTmpD23 = (digitalRead (23));
if (_bounseInputD23S)
{
if (millis() >= (_bounseInputD23P + 40))
{_bounseInputD23O= _bounceInputTmpD23; _bounseInputD23S=0;}
}
else
{
if (_bounceInputTmpD23 != _bounseInputD23O )
{_bounseInputD23S=1; _bounseInputD23P = millis();}
}
bool _bounceInputTmpD14 = (digitalRead (14));
if (_bounseInputD14S)
{
if (millis() >= (_bounseInputD14P + 40))
{_bounseInputD14O= _bounceInputTmpD14; _bounseInputD14S=0;}
}
else
{
if (_bounceInputTmpD14 != _bounseInputD14O )
{_bounseInputD14S=1; _bounseInputD14P = millis();}
}
bool _bounceInputTmpD11 = (digitalRead (11));
if (_bounseInputD11S)
{
if (millis() >= (_bounseInputD11P + 40))
{_bounseInputD11O= _bounceInputTmpD11; _bounseInputD11S=0;}
}
else
{
if (_bounceInputTmpD11 != _bounseInputD11O )
{_bounseInputD11S=1; _bounseInputD11P = millis();}
}
bool _bounceInputTmpD18 = (digitalRead (18));
if (_bounseInputD18S)
{
if (millis() >= (_bounseInputD18P + 40))
{_bounseInputD18O= _bounceInputTmpD18; _bounseInputD18S=0;}
}
else
{
if (_bounceInputTmpD18 != _bounseInputD18O )
{_bounseInputD18S=1; _bounseInputD18P = millis();}
}
bool _bounceInputTmpD8 = (digitalRead (8));
if (_bounseInputD8S)
{
if (millis() >= (_bounseInputD8P + 40))
{_bounseInputD8O= _bounceInputTmpD8; _bounseInputD8S=0;}
}
else
{
if (_bounceInputTmpD8 != _bounseInputD8O )
{_bounseInputD8S=1; _bounseInputD8P = millis();}
}
bool _bounceInputTmpD6 = (digitalRead (6));
if (_bounseInputD6S)
{
if (millis() >= (_bounseInputD6P + 40))
{_bounseInputD6O= _bounceInputTmpD6; _bounseInputD6S=0;}
}
else
{
if (_bounceInputTmpD6 != _bounseInputD6O )
{_bounseInputD6S=1; _bounseInputD6P = millis();}
}
bool _bounceInputTmpD16 = (digitalRead (16));
if (_bounseInputD16S)
{
if (millis() >= (_bounseInputD16P + 40))
{_bounseInputD16O= _bounceInputTmpD16; _bounseInputD16S=0;}
}
else
{
if (_bounceInputTmpD16 != _bounseInputD16O )
{_bounseInputD16S=1; _bounseInputD16P = millis();}
}
bool _bounceInputTmpD4 = (digitalRead (4));
if (_bounseInputD4S)
{
if (millis() >= (_bounseInputD4P + 40))
{_bounseInputD4O= _bounceInputTmpD4; _bounseInputD4S=0;}
}
else
{
if (_bounceInputTmpD4 != _bounseInputD4O )
{_bounseInputD4S=1; _bounseInputD4P = millis();}
}
bool _bounceInputTmpD20 = (digitalRead (20));
if (_bounseInputD20S)
{
if (millis() >= (_bounseInputD20P + 40))
{_bounseInputD20O= _bounceInputTmpD20; _bounseInputD20S=0;}
}
else
{
if (_bounceInputTmpD20 != _bounseInputD20O )
{_bounseInputD20S=1; _bounseInputD20P = millis();}
}
bool _bounceInputTmpD10 = (digitalRead (10));
if (_bounseInputD10S)
{
if (millis() >= (_bounseInputD10P + 40))
{_bounseInputD10O= _bounceInputTmpD10; _bounseInputD10S=0;}
}
else
{
if (_bounceInputTmpD10 != _bounseInputD10O )
{_bounseInputD10S=1; _bounseInputD10P = millis();}
}
bool _bounceInputTmpD22 = (digitalRead (22));
if (_bounseInputD22S)
{
if (millis() >= (_bounseInputD22P + 40))
{_bounseInputD22O= _bounceInputTmpD22; _bounseInputD22S=0;}
}
else
{
if (_bounceInputTmpD22 != _bounseInputD22O )
{_bounseInputD22S=1; _bounseInputD22P = millis();}
}
bool _bounceInputTmpD24 = (digitalRead (24));
if (_bounseInputD24S)
{
if (millis() >= (_bounseInputD24P + 40))
{_bounseInputD24O= _bounceInputTmpD24; _bounseInputD24S=0;}
}
else
{
if (_bounceInputTmpD24 != _bounseInputD24O )
{_bounseInputD24S=1; _bounseInputD24P = millis();}
}
bool _bounceInputTmpD3 = (digitalRead (3));
if (_bounseInputD3S)
{
if (millis() >= (_bounseInputD3P + 40))
{_bounseInputD3O= _bounceInputTmpD3; _bounseInputD3S=0;}
}
else
{
if (_bounceInputTmpD3 != _bounseInputD3O )
{_bounseInputD3S=1; _bounseInputD3P = millis();}
}
bool _bounceInputTmpD15 = (digitalRead (15));
if (_bounseInputD15S)
{
if (millis() >= (_bounseInputD15P + 40))
{_bounseInputD15O= _bounceInputTmpD15; _bounseInputD15S=0;}
}
else
{
if (_bounceInputTmpD15 != _bounseInputD15O )
{_bounseInputD15S=1; _bounseInputD15P = millis();}
}
bool _bounceInputTmpD12 = (digitalRead (12));
if (_bounseInputD12S)
{
if (millis() >= (_bounseInputD12P + 40))
{_bounseInputD12O= _bounceInputTmpD12; _bounseInputD12S=0;}
}
else
{
if (_bounceInputTmpD12 != _bounseInputD12O )
{_bounseInputD12S=1; _bounseInputD12P = millis();}
}
bool _bounceInputTmpD5 = (digitalRead (5));
if (_bounseInputD5S)
{
if (millis() >= (_bounseInputD5P + 40))
{_bounseInputD5O= _bounceInputTmpD5; _bounseInputD5S=0;}
}
else
{
if (_bounceInputTmpD5 != _bounseInputD5O )
{_bounseInputD5S=1; _bounseInputD5P = millis();}
}
bool _bounceInputTmpD19 = (digitalRead (19));
if (_bounseInputD19S)
{
if (millis() >= (_bounseInputD19P + 40))
{_bounseInputD19O= _bounceInputTmpD19; _bounseInputD19S=0;}
}
else
{
if (_bounceInputTmpD19 != _bounseInputD19O )
{_bounseInputD19S=1; _bounseInputD19P = millis();}
}
bool _bounceInputTmpD17 = (digitalRead (17));
if (_bounseInputD17S)
{
if (millis() >= (_bounseInputD17P + 40))
{_bounseInputD17O= _bounceInputTmpD17; _bounseInputD17S=0;}
}
else
{
if (_bounceInputTmpD17 != _bounseInputD17O )
{_bounseInputD17S=1; _bounseInputD17P = millis();}
}
bool _bounceInputTmpD7 = (digitalRead (7));
if (_bounseInputD7S)
{
if (millis() >= (_bounseInputD7P + 40))
{_bounseInputD7O= _bounceInputTmpD7; _bounseInputD7S=0;}
}
else
{
if (_bounceInputTmpD7 != _bounseInputD7O )
{_bounseInputD7S=1; _bounseInputD7P = millis();}
}
//Плата:1
if (!(_bounseInputD24O))
{
if (! _count21I)
{
_count21P = _count21P+1;
_count21I = 1;
}
}
else
{
_count21I=0;
}
if (_gtv4) _count21P = 0;
_gtv23 = _count21P;
if (!(_bounseInputD23O))
{
if (! _count20I)
{
_count20P = _count20P+1;
_count20I = 1;
}
}
else
{
_count20I=0;
}
if (_gtv4) _count20P = 0;
_gtv22 = _count20P;
if (!(_bounseInputD22O))
{
if (! _count19I)
{
_count19P = _count19P+1;
_count19I = 1;
}
}
else
{
_count19I=0;
}
if (_gtv4) _count19P = 0;
_gtv21 = _count19P;
if (!(_bounseInputD21O))
{
if (! _count18I)
{
_count18P = _count18P+1;
_count18I = 1;
}
}
else
{
_count18I=0;
}
if (_gtv4) _count18P = 0;
_gtv20 = _count18P;
if (!(_bounseInputD20O))
{
if (! _count17I)
{
_count17P = _count17P+1;
_count17I = 1;
}
}
else
{
_count17I=0;
}
if (_gtv4) _count17P = 0;
_gtv19 = _count17P;
if (!(_bounseInputD19O))
{
if (! _count16I)
{
_count16P = _count16P+1;
_count16I = 1;
}
}
else
{
_count16I=0;
}
if (_gtv4) _count16P = 0;
_gtv18 = _count16P;
if (!(_bounseInputD18O))
{
if (! _count15I)
{
_count15P = _count15P+1;
_count15I = 1;
}
}
else
{
_count15I=0;
}
if (_gtv4) _count15P = 0;
_gtv17 = _count15P;
if (!(_bounseInputD17O))
{
if (! _count14I)
{
_count14P = _count14P+1;
_count14I = 1;
}
}
else
{
_count14I=0;
}
if (_gtv4) _count14P = 0;
_gtv16 = _count14P;
if (!(_bounseInputD16O))
{
if (! _count13I)
{
_count13P = _count13P+1;
_count13I = 1;
}
}
else
{
_count13I=0;
}
if (_gtv4) _count13P = 0;
_gtv15 = _count13P;
if (!(_bounseInputD15O))
{
if (! _count12I)
{
_count12P = _count12P+1;
_count12I = 1;
}
}
else
{
_count12I=0;
}
if (_gtv4) _count12P = 0;
_gtv14 = _count12P;
if (!(_bounseInputD14O))
{
if (! _count11I)
{
_count11P = _count11P+1;
_count11I = 1;
}
}
else
{
_count11I=0;
}
if (_gtv4) _count11P = 0;
_gtv13 = _count11P;
if (!(_bounseInputD12O))
{
if (! _count10I)
{
_count10P = _count10P+1;
_count10I = 1;
}
}
else
{
_count10I=0;
}
if (_gtv4) _count10P = 0;
_gtv12 = _count10P;
if (!(_bounseInputD11O))
{
if (! _count9I)
{
_count9P = _count9P+1;
_count9I = 1;
}
}
else
{
_count9I=0;
}
if (_gtv4) _count9P = 0;
_gtv11 = _count9P;
if (!(_bounseInputD10O))
{
if (! _count8I)
{
_count8P = _count8P+1;
_count8I = 1;
}
}
else
{
_count8I=0;
}
if (_gtv4) _count8P = 0;
_gtv10 = _count8P;
if (!(_bounseInputD9O))
{
if (! _count7I)
{
_count7P = _count7P+1;
_count7I = 1;
}
}
else
{
_count7I=0;
}
if (_gtv4) _count7P = 0;
_gtv8 = _count7P;
if (!(_bounseInputD8O))
{
if (! _count6I)
{
_count6P = _count6P+1;
_count6I = 1;
}
}
else
{
_count6I=0;
}
if (_gtv4) _count6P = 0;
_gtv7 = _count6P;
if (!(_bounseInputD7O))
{
if (! _count5I)
{
_count5P = _count5P+1;
_count5I = 1;
}
}
else
{
_count5I=0;
}
if (_gtv4) _count5P = 0;
_gtv6 = _count5P;
if (!(_bounseInputD6O))
{
if (! _count4I)
{
_count4P = _count4P+1;
_count4I = 1;
}
}
else
{
_count4I=0;
}
if (_gtv4) _count4P = 0;
_gtv5 = _count4P;
if (!(_bounseInputD5O))
{
if (! _count3I)
{
_count3P = _count3P+1;
_count3I = 1;
}
}
else
{
_count3I=0;
}
if (_gtv4) _count3P = 0;
_gtv3 = _count3P;
if (!(_bounseInputD4O))
{
if (! _count2I)
{
_count2P = _count2P+1;
_count2I = 1;
}
}
else
{
_count2I=0;
}
if (_gtv4) _count2P = 0;
_gtv2 = _count2P;
if (!(_bounseInputD3O))
{
if (! _count1I)
{
_count1P = _count1P+1;
_count1I = 1;
}
}
else
{
_count1I=0;
}
if (_gtv4) _count1P = 0;
_gtv1 = _count1P;
((String(_gtv1, DEC))).toCharArray((RemoteXY.text_1), 11);
((String(_gtv2, DEC))).toCharArray((RemoteXY.text_2), 11);
((String(_gtv3, DEC))).toCharArray((RemoteXY.text_3), 11);
((String(_gtv5, DEC))).toCharArray((RemoteXY.text_4), 11);
((String(_gtv6, DEC))).toCharArray((RemoteXY.text_5), 11);
((String(_gtv7, DEC))).toCharArray((RemoteXY.text_6), 11);
((String(_gtv8, DEC))).toCharArray((RemoteXY.text_7), 11);
((String(_gtv10, DEC))).toCharArray((RemoteXY.text_8), 11);
((String(_gtv11, DEC))).toCharArray((RemoteXY.text_9), 11);
((String(_gtv12, DEC))).toCharArray((RemoteXY.text_10), 11);
((String(_gtv13, DEC))).toCharArray((RemoteXY.text_11), 11);
((String(_gtv14, DEC))).toCharArray((RemoteXY.text_12), 11);
((String(_gtv15, DEC))).toCharArray((RemoteXY.text_13), 11);
((String(_gtv16, DEC))).toCharArray((RemoteXY.text_14), 11);
((String(_gtv17, DEC))).toCharArray((RemoteXY.text_15), 11);
((String(_gtv18, DEC))).toCharArray((RemoteXY.text_16), 11);
((String(_gtv19, DEC))).toCharArray((RemoteXY.text_17), 11);
((String(_gtv20, DEC))).toCharArray((RemoteXY.text_18), 11);
((String(_gtv21, DEC))).toCharArray((RemoteXY.text_19), 11);
((String(_gtv22, DEC))).toCharArray((RemoteXY.text_20), 11);
((String(_gtv23, DEC))).toCharArray((RemoteXY.text_21), 11);
if (1) {if (! _gen1I){_gen1I = 1; _gen1O = 1; _gen1P = millis();}} else { _gen1I = 0 ; _gen1O= 0; } if (_gen1I && _gen1O) _gen1O = !( _isTimer( _gen1P , 1000 ));
_gtv4 = ( ((RemoteXY.button_1)) || (_gen1O) );
}
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));}
}