What code do I flash my photon so that it works with IFTTT?

I need to have a trigger. I have to hook the particle up to a buzzer and a button.

int buttonPin = D2;
int buzzerPin = D3;

void setup() {
    pinMode(buttonPin, INPUT);
    pinMode(buzzerPin, OUTPUT);
    particle.function("buzz", buzzerOn);
    particle.function("silent", buzzerOff);
    particle.publish
}

void loop() {
    //digitalRead(buttonPin);
}

Wellcome to the community :+1:

However, as a first time poster politely asking a question for help rather than merely stating your need would show some courtesy to the community you hope to get help from.

One important step in here is
https://community.particle.io/t/welcome-using-particle-forums-and-forum-etiquette

Also the docs do help - look and use the search feature there first
https://docs.particle.io/tutorials/integrations/ifttt/

4 Likes

Not much of an answer …but there are Particle IFTT Nodes and you just set up a particle Publish and and a particle subscribe and enter the info into the IFTT node along with your information it should work