Actualiser pixl.js

cosmetic tweaks
This commit is contained in:
Pierre Guillod 2024-12-25 16:30:56 +01:00
parent 6b61dcae54
commit e7164c2305

View file

@ -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();