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

photon
Tags: #<Tag:0x00007fe225a80700>

#1

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);
}

#2

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/