Help appending code to the Tinker Firmware for Photon

Glad to hear it’s working :wink:

Actually, if you want to use an external resistor to tie the D0 pin to a voltage potential, you should tie it from D0 to GND. As ScruffR points out, you don’t really need it though if you use the internal INPUT_PULLDOWN.

Also, you should add code that prevents the D0 pin from being set in any of the tinker functions, because you could damage the pin if your switch is shorting D0 to 3V3 and you set D0 to an OUTPUT with digitalWrite() or analogWrite() and it gets set low.