? What
Most Recent
Forum Legend
Following
New Comments
Locked Topic
Pinned Topic
I turned to the manufacturer with a request to make it possible to select flashing LEDs to indicate the move on the chessboard, the answer was like, "we're fine." I'm not a programmer, so I found a simple solution for myself. I attach two variants of flashing LEDs. You need to copy the file from the zip archive folder with replacement to the directory with the installed program along the path ...\chessnut\resources\app.asar\js.
https://drive.google.com/file/d/1IBF4itlXJY7zRIaj4PQMgFE6MT2H_B7Q/view?usp=sharing
Or if someone is afraid that the file is infected with a virus, you can change part of the code in windows notepad in the file chesshid.js is located along the way ...\chessnut\resources\app.asar\js.
You need to replace part of the code:
var setLedIntv = 0;
ChessNutBoard.prototype.SetLed = function (led) {
if (new Date().getTime() - setLedIntv > 500) {
var header = [0x0a,0x08];
if (this.boardDevice) this.boardDevice.write(header.concat(led));
setLedIntv = new Date().getTime();
}
}
with the following:
var setLedIntv = 0;
ChessNutBoard.prototype.SetLed = function (led) {
if (new Date().getTime() - setLedIntv > 500) {
var header = [0x0a,0x08];
if (this.boardDevice) this.boardDevice.write([0x0a,0x08,0,0,0,0,0,0,0,0]);
setLedIntv = new Date().getTime();
this.boardDevice.write(header.concat(led));
}
}
Testing was carried out on Win10 when connecting ChessNut air via USB. You make all modifications at your own risk without any guarantees on my part.