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

Tags: #<Tag:0x00007fe225a80700>


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

void loop() {


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

Also the docs do help - look and use the search feature there first