diff --git a/tsconfig.json b/tsconfig.json index e075f97..91776fc 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -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. */ diff --git a/web/serial.ts b/web/serial.ts new file mode 100644 index 0000000..9b3e2f9 --- /dev/null +++ b/web/serial.ts @@ -0,0 +1,9 @@ +await port.open({ baudRate: 9600}); + +while (port.readible) { + + console.log("ik lees dingen") + + + +}