• It looks like you're posting C code, not JS. Did you want this converted to run on Espruino, or are you actually using an Arduino? If so, you'd need to find an Arduino forum to post on.

About

Avatar for Gordon @Gordon started