• @IanWatkins Cool! Sorry about those mistakes, I translated to JS with regex and very little manual work so things like int data[8]; -> var data = []; got missed.
    If (when) you get the other quirks out of the way, you should do a PR to this http://www.espruino.com/Writing+Modules with the Module and claim the prize [then tell us what you got]! :)

About