Replies: 4 comments 1 reply
-
Bangle.js has no There's a reference of what commands you can use at https://www.espruino.com/Reference#software |
Beta Was this translation helpful? Give feedback.
-
I wanted to calculate a special wellness marker using data such as light exposure. |
Beta Was this translation helpful? Give feedback.
-
I am not a programmer, so I am using the help of AI |
Beta Was this translation helpful? Give feedback.
-
Ahh, ok - yeah, AI doesn't seem too great at writing code for Espruino I'm afraid - it just makes up all the function names! I think the problem you have is that Bangle.js doesn't have any forward-facing light sensor, so it'll just be using the heart rate monitor, which probably isn't what you want? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am trying the following function:
Bangle.setOptions({stepCounter:true,light:true});
Bangle.setHRMPower(1);
But it is giving me an error.
Uncaught Error: Function "getLight" not found!
at line 1 col 18
let lux = Bangle.getLight();
How can I make it work?
Thank you
Beta Was this translation helpful? Give feedback.
All reactions