Professional Documents
Culture Documents
-- New project --
//////////////////////////////////////////////
// RemoteXY include library //
//////////////////////////////////////////////
#include <RemoteXY.h>
// RemoteXY configurate
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
{ 255,1,0,0,0,14,0,6,13,0,
2,0,32,23,36,17,3,49,0,48,
0 };
// input variable
uint8_t light; // =1 if switch ON and =0 if OFF
// other variable
uint8_t connect_flag; // =1 if wire connected, else =0
} RemoteXY;
#pragma pack(pop)
/////////////////////////////////////////////
// END RemoteXY include //
/////////////////////////////////////////////
#define PIN_LIGHT 53
void setup()
{
RemoteXY_Init ();
void loop()
{
RemoteXY_Handler ();
digitalWrite(PIN_LIGHT, (RemoteXY.light==0)?LOW:HIGH);