I made a simple circuit using the Adafruit addressable LED strip, a button, and a Particle Photon 2 microcontroller. I tried for a long time to integrate it with Webhooks and IFTTT so that I could call a Particle function based on my Google Calendar. I ran into a lot of issues with this method. Even after I set it up, I could not implement it since Webhooks is no longer available for free. I changed my approach and made my function just callable from the Particle Console instead.
I used the millis() function and a Boolean flag to determine if the button had been held for 3 seconds. This took a while to troubleshoot because one of the wires I had plugged into my button was broken and I did not realize. Once I switched out wires everything worked fine.
Content Rating
Is this a good/useful/informative piece of content to include in the project? Have your say!
You must login before you can post a comment. .