-
-
In another test it genuinely believed my heart rate was 51 bpm, with 100% confidence. Anyway, after looking at the source code of the Health app, I made a PR to update the HRM logic.
-
-
-
I modified the test code a bit, and it seems that the HRM event always gets a higher BPM than the manual counting:
var M = g.getWidth() / 2;
var yr, yg, yc, yd;
let beats = [];
Bangle.on("HRM-raw", (hrm) => {
g.scroll(0, 1);
g.setPixel(M, 0, "#ff0");
g.setColor(hrm.adjusted ? "#000" : "#0F0").fillRect(
yg,
0,
(yg = hrm.raw / 32),
0
);
g.setColor("#F00").fillRect(yr, 0, (yr = M + hrm.filt / 256 - 30), 0);
g.setColor("#F0F").fillRect(yc, 0, (yc = M + (hrm.raw - hrm.avg) / 128 + 30), 0);
if (hrm.isBeat) {
g.fillRect(yr - 4, 0, yr + 4, 0);
beats.push(Date.now());
}
});
Bangle.setHRMPower(1);
Bangle.setLCDTimeout(0);
Bangle.setLCDPower(1);
setInterval(() => {
beats = beats.filter(b => b > Date.now() - 60 * 1000);
console.log(beats.length, "BPM");
}, 1000);
Bangle.on("HRM", (hrm) => console.log("OFFICIAL:", hrm.bpm, "BPM", hrm.confidence));
Any idea why?
-
-
-
Recently got a Bangle.js 2, and one minor thing that annoys me is that there's no smooth scrolling, so I wanted to implement it. I did some poking around and found the implementation for E.showScroller. However I can't find any way to tell when a touch ends. Could someone point me to how to do that, or describe why that's not possible?
-
-
-
-
-
-
-
-
Right now Espruino doesn't really have a consistent design language. I have miscellaneous complaints about the Bangle app loader and the IDE (mainly speed and reliability), but one main one is the design. The UI is scattered, with some things in different places. Does the team have any plans to update the UI? Would they mind if I made a PR that moved some stuff around and maybe changed the theming?
-
-
-
-
-
It's the latest version. Of course it's hard to know what your feet are doing when you're doing complex activities with your hand, but sometimes I was able to get it to register like 5 steps by doing a... "reverse punch"? I put my hand so it faced upwards and brought it down quickly. Anyway I'll take a look at if I can gather any more data.
-
Is this in the latest firmware yet?