blinking)

This commit is contained in:
Sergey Yarkov 2022-11-03 21:48:11 +03:00
parent 485378934e
commit 06e0aa8dd3
No known key found for this signature in database
GPG Key ID: E91CE1FABC619B6F

View File

@ -170,4 +170,10 @@ class SerialPortHandler {
}
}
new Application(document.getElementById('app'));
const app = new Application(document.getElementById('app'));
setInterval(async () => {
if (app.serialPortHandler.isOpened) {
await app.serialPortHandler.write('led_toggle' + '\n');
}
}, 500);