I mean, I can take a guess that the answer is "wrong" but with a drawing of how it's wired up would help me be more specific.
A hand-drawn picture, photographed with your cellphone is better than a fritzing diagram any day. Also, maybe a photo of the guts of the thing you're controlling just so I can give a quick reality check that it's what we think it is and should work how we think it should.
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.
How is it wired?
I mean, I can take a guess that the answer is "wrong" but with a drawing of how it's wired up would help me be more specific.
A hand-drawn picture, photographed with your cellphone is better than a fritzing diagram any day. Also, maybe a photo of the guts of the thing you're controlling just so I can give a quick reality check that it's what we think it is and should work how we think it should.