mirror of https://github.com/espruino/BangleApps
audio test
parent
6d7acb091d
commit
24c6eaeea6
|
@ -28,9 +28,8 @@ function readHRM() {
|
|||
}
|
||||
g.setColor(1,1,1);
|
||||
g.lineTo(x,y);
|
||||
console.log("a ", y);
|
||||
freq((Math.abs(y) * 10000.0) + 500.0);
|
||||
console.log("freq ", (y * 1000.0) + 100.0);
|
||||
freq((Math.abs(a) * 10000.0) + 500.0);
|
||||
console.log("freq ", (a * 10000.0) + 500.0);
|
||||
if ((max-min)>0.005) {
|
||||
if (4*a > (min+3*max)) { // high
|
||||
g.setColor(1,0,0);
|
||||
|
|
Loading…
Reference in New Issue