The Art of Connecting Things – Opdracht 3

//The pin you want to control, in this case I'm blinking the on-board blue LED on digital pin 7int led = D7;//This function is called after the Photon has startedvoid setup(){//We set the pin mode to outputpinMode(led, OUTPUT);//We "Subscribe" to our IFTTT event called button so that we get events for itParticle.subscribe("button", myHandler);}//The program loop, not sure if this has to be here for the program to run or notvoid loop() {}//The function that handles the event from IFTTTvoid myHandler(const char *event, const char *data){// We'll turn the LED ondigitalWrite(led, HIGH);