Actualiser pixl.js
cosmetic tweaks
This commit is contained in:
parent
6b61dcae54
commit
e7164c2305
1 changed files with 3 additions and 3 deletions
6
pixl.js
6
pixl.js
|
@ -14,7 +14,7 @@ function scanForDevices() {
|
||||||
g.setFont("HaxorNarrow7x17");
|
g.setFont("HaxorNarrow7x17");
|
||||||
var arr = dev.serviceData.feaa;
|
var arr = dev.serviceData.feaa;
|
||||||
var str = String.fromCharCode(arr[2],arr[3],arr[4],arr[5],arr[6],arr[7],arr[8],arr[9],arr[10],arr[11],arr[12],arr[13],arr[14],arr[15],arr[16],arr[17]);
|
var str = String.fromCharCode(arr[2],arr[3],arr[4],arr[5],arr[6],arr[7],arr[8],arr[9],arr[10],arr[11],arr[12],arr[13],arr[14],arr[15],arr[16],arr[17]);
|
||||||
g.drawString(str,25,idx*20+1);
|
g.drawString(str,30,idx*20+1);
|
||||||
idx++;
|
idx++;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -28,8 +28,8 @@ function scanForDevices() {
|
||||||
LED1.set();
|
LED1.set();
|
||||||
g.flip();
|
g.flip();
|
||||||
}
|
}
|
||||||
}, 1900); // scan for 1 sec
|
}, 1400); // scan for 1 sec
|
||||||
}
|
}
|
||||||
|
|
||||||
setInterval(scanForDevices, 2000);
|
setInterval(scanForDevices, 1500);
|
||||||
scanForDevices();
|
scanForDevices();
|
Loading…
Reference in a new issue