mirror of
https://github.com/sergeyyarkov/avr128da48_web-serial-example.git
synced 2026-10-11 10:19:02 +03:00
blinking)
This commit is contained in:
parent
485378934e
commit
06e0aa8dd3
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user