Okay, yeah, setTimeout sounds good ! How can I make it so that the reading only happen once every X seconds, too ? Wouldn't setTimeout make it run in loop and do the reading of the loop X seconds back ?
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.
Okay, yeah, setTimeout sounds good ! How can I make it so that the reading only happen once every X seconds, too ? Wouldn't setTimeout make it run in loop and do the reading of the loop X seconds back ?