start eigen serial typescript script
This commit is contained in:
@@ -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
9
web/serial.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
await port.open({ baudRate: 9600});
|
||||
|
||||
while (port.readible) {
|
||||
|
||||
console.log("ik lees dingen")
|
||||
|
||||
|
||||
|
||||
}
|
Reference in New Issue
Block a user