Sorry When and event named new-email gets published I want the Photon to run this code.
void setup(){
pinMode(D7, OUTPUT);
}
void loop(){
digitalWrite(D7, HIGH);
delay(10);
digitalWrite(D7, LOW);
delay(300);
}
I’ve edited your post to properly format the code. Please check out this post, so you know how to do this yourself in the future. Thanks in advance! ~Jordy