do not mix both approaches! Either use setTimeout as shown above or start a new setInterval whenever your drawing period changes:
var TimerId = setInterval(draw,1000)
TimerId = setInterval(draw,60000)
© Espruino, powered by microcosm.
Report a problem