is it possible to use setWatch with Light?

Posted on
  • I would like some code to run as soon as light comes above a certain level.

    But to save battery I would like to do that with setWatch, is that possible?

  • Hi,

    It's a nice idea, but I'm afraid it isn't possible... At least at the moment reading from the light sensor requires an analog to digital conversion, which can't be done without waking the device up - and if it's awake it's not that painful to get JS to do the reading for you.

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

is it possible to use setWatch with Light?

Posted by Avatar for ferdinand @ferdinand

Actions