start eigen serial typescript script

This commit is contained in:
Sam
2023-09-21 14:20:13 +02:00
parent c7815d1725
commit 737626d6e4
2 changed files with 10 additions and 1 deletions

View File

@@ -11,7 +11,7 @@
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
/* Language and Environment */
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
"target": "es2017", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
// "jsx": "preserve", /* Specify what JSX code is generated. */
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */

9
web/serial.ts Normal file
View File

@@ -0,0 +1,9 @@
await port.open({ baudRate: 9600});
while (port.readible) {
console.log("ik lees dingen")
}