Thanks for your help! The guy at the electronics store happened to be even less knowledgeable than myself and sold me a BD234 transistor for a MOSFET, which it isn't. But the circuit also works with a BD234, so this issue is solved :)
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.
Thanks for your help! The guy at the electronics store happened to be even less knowledgeable than myself and sold me a BD234 transistor for a MOSFET, which it isn't. But the circuit also works with a BD234, so this issue is solved :)