created script with lib that can output to console

This commit is contained in:
sam
2023-09-27 23:27:25 +02:00
parent 6e29efeae6
commit 9fe723af15
2 changed files with 1265 additions and 0 deletions

17
web/js-ts/serialv2.js Normal file
View File

@@ -0,0 +1,17 @@
let port;
async function setup() {
port = createSerial();
port.open(9600);
if (port.opened()) {
console.log("adsnij")
}
}
async function readloop() {
console.log(port.read());
}

1248
web/js-ts/webseriallib.js Normal file

File diff suppressed because it is too large Load Diff