mirror of
https://github.com/sergeyyarkov/avr128da48_web-serial-example.git
synced 2026-10-11 10:19:02 +03:00
log
This commit is contained in:
parent
06e0aa8dd3
commit
f9bc1ea74c
@ -175,5 +175,7 @@ const app = new Application(document.getElementById('app'));
|
|||||||
setInterval(async () => {
|
setInterval(async () => {
|
||||||
if (app.serialPortHandler.isOpened) {
|
if (app.serialPortHandler.isOpened) {
|
||||||
await app.serialPortHandler.write('led_toggle' + '\n');
|
await app.serialPortHandler.write('led_toggle' + '\n');
|
||||||
|
const message = await app.serialPortHandler.read();
|
||||||
|
console.log(message);
|
||||||
}
|
}
|
||||||
}, 500);
|
}, 500);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user