Project Kontrol 4 LED Via RemoteXY
Project Kontrol 4 LED Via RemoteXY
* Input : -
* Output : LED
* 99 Proyek IoT
* www.ardutech.com
****************************************/
#define REMOTEXY_MODE__ESP8266WIFI_LIB_CLOUD
#include <ESP8266WiFi.h>
#include <RemoteXY.h>
//---HOTSPOT ANDA
// RemoteXY configurate
#pragma pack(push, 1)
uint8_t RemoteXY_CONF[] =
{ 255,4,0,0,0,68,0,10,13,1,
1,8,5,19,12,12,2,31,76,49,
0,1,8,19,19,12,12,2,31,76,
50,0,1,8,33,19,12,12,2,31,
76,51,0,1,8,46,19,12,12,2,
31,76,52,0,129,0,11,7,42,6,
17,75,111,110,116,114,111,108,32,76,
97,109,112,117,0 };
// this structure defines all the variables and events of your control interface
struct {
// input variables
// other variable
} RemoteXY;
#pragma pack(pop)
/////////////////////////////////////////////
/////////////////////////////////////////////
#define PIN_BUTTON_1 D5
#define PIN_BUTTON_2 D6
#define PIN_BUTTON_3 D7
#define PIN_BUTTON_4 D8
void setup()
RemoteXY_Init ();
void loop()
RemoteXY_Handler ();
digitalWrite(PIN_BUTTON_1, (RemoteXY.button_1==0)?LOW:HIGH);
digitalWrite(PIN_BUTTON_2, (RemoteXY.button_2==0)?LOW:HIGH);
digitalWrite(PIN_BUTTON_3, (RemoteXY.button_3==0)?LOW:HIGH);
digitalWrite(PIN_BUTTON_4, (RemoteXY.button_4==0)?LOW:HIGH);