Avatar for bponce02

bponce02

Member since Nov 2023 • Last active Nov 2023
  • 1 conversations
  • 2 comments

Most recent activity

    • 4 comments
    • 151 views
  • in Bangle.js
    Avatar for bponce02

    I'm trying to implement some type of wear detection by pulling the environment data. Maybe I'm misunderstanding how the watch does it. Do I have to rely on the other sensor to detect if something is close to the watch? I cannot replicate getting a one. Only zeros when I run the code above. I can get numbers above zero by shining my phone's flashlight, but this isn't useful for my use case.
    I've been looking at this code snippet from the source code. https://github.com/espruino/Espruino/blo­b/master/libs/misc/hrm_vc31.c#L376

  • in Bangle.js
    Avatar for bponce02

    I've been doing some quick tests on my Bangle running 2v19. However, I'm not sure what the output of this event is supposed to mean. All I get when I run this is zeros. Is this expected functionality?

    Bangle.setHRMPower(1);
    Bangle.setOptions({hrmPushEnv:true});
    Bangle.on('HRM-env', function(env) {
        console.log(env);
    });
    
Actions