We use the APixel dev board and a casing of the push light to build the project. It can works with two AAA battery (1.5V x 2 = 3V).
The push button “boots up” the module by sending a HIGH signal through a diode to CH_PD. The first thing to do in init.lua is to set GPIO02 to HIGH, which is connected through a 1K resistor back to CH_PD. When it done posting to IFTTT it just set GPIO02 to LOW and the module is disabled.
Please check Noel Portugal’s project. The initial code comes from him.
Changes for the push light
Re-soldering the power wire to use only 2 x AAA battery. The original battery holder can install 3 X AAA batteries.
Replaced the microswitch with one without lock.
Changes made from original code
Change the stylesheet for the configure page — Thanks purecss!
Added IFTTT token field to let you enter the token