created script with lib that can output to console
This commit is contained in:
17
web/js-ts/serialv2.js
Normal file
17
web/js-ts/serialv2.js
Normal 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
1248
web/js-ts/webseriallib.js
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user