is it possible to use setWatch with Light? #2297
Unanswered
espruino-discuss
asked this question in
Puck.js, Pixl.js, Jolt.js and MDBT42
Replies: 1 comment
-
Posted at 2017-08-09 by @gfwilliams 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. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-08-08 by ferdinand
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?
Beta Was this translation helpful? Give feedback.
All reactions