And about that small capacitor, by small you mean something around 1uF? Or 1nF?
I'd say 0.1uF is a pretty safe bet. 1nF might be a bit small, and I'm sure 1uF would be fine but it's actually quite large (it'd take a while to charge up after changing the GPIO).
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I'd say 0.1uF is a pretty safe bet. 1nF might be a bit small, and I'm sure 1uF would be fine but it's actually quite large (it'd take a while to charge up after changing the GPIO).