#include // This is the Home Easy controller // This example will use a 433AM transmitter on // pin 4 for transmitting and take control from // the chronos watch //init home easy lib HomeEasyCtrl easy(4,13); int incomingByte; void setup() { Serial.begin(9600); } void loop() { if (Serial.available() > 0) { // read the oldest byte in the serial buffer: incomingByte = Serial.read(); // if it's a capital H (ASCII 72), turn on the Light: if (incomingByte == 'H') { easy.deviceOn(); // turn on device 0 } // if it's an L (ASCII 76) turn off the Light: if (incomingByte == 'L') { easy.deviceOff(); // turn it off again } } }