Sure - you just specify a number in Puck.magOn, like Puck.magOn(5) - see http://www.espruino.com/Reference#l_Puck_magOn
What kind of overflow did you get?
If you do while(true) then the code won't exit and no other JS tasks will be able to get run - you'll have to Ctrl-C out of it. On Puck.js it's especially painful because it can't transmit that quickly, so
when you're outputting with console.log it's basically just stuck for 99% of the time waiting for the next Bluetooth send task to finish.
© Espruino, powered by microcosm.
Report a problem