Help appending code to the Tinker Firmware for Photon

Thanks

I’d also recommend to add the same alterations in the Read functions, since they might also interfere with your intended use of D0.
And I think these alterations also have an impact on A0 which might not be intended/desirable.

If at all possible, I’d do away with the Tinker app and make a mobile webpage. It’s not that hard to do, and provides way more flexibility than the Tinker app, without needing to ‘hack’ it together. Just my 2 cents.

Thanks - I will look into it.

Quick question regarding your comment here.

If both sides were an even 3.3V, there wouldn't be any potential difference and you wouldn't damage your pin right? I'm guessing that you're recommending this because if one side is not perfectly even with the other and there is no resistance, the side with the lower potential will see more than the 20mA current limit that the pin can handle and in a reverse direction. Is this correct?

No, if you read carefully

You will short 3V3 to GND via the GPIO probably damaging it.

Yup that makes sense now. Thanks!