diff --git a/README.md b/README.md index e3f53ef..75b9bc0 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,10 @@ Webduino Module for UART. bower install https://github.com/webduinoio/webduino-module-uart.git ``` +## Usage + +Learn how to use, visit [doc](https://docs.google.com/document/d/1Lk0VuGdUv1yn86nwNujq0O_BItGtORErSKRtwGNuGRw/edit?usp=sharing). + ## License This project is licensed under the MIT license, see [LICENSE](LICENSE) for more information. diff --git a/blockly/javascript.js b/blockly/javascript.js index b5d4db1..58a4f8f 100644 --- a/blockly/javascript.js +++ b/blockly/javascript.js @@ -18,7 +18,7 @@ Blockly.JavaScript['uart_rx'] = function(block) { var variable_uart = Blockly.JavaScript.variableDB_.getName(block.getFieldValue('uart'), Blockly.Variables.NAME_TYPE); var statements_rx = Blockly.JavaScript.statementToCode(block, 'rx'); var code = variable_uart + '.rx('; - code += "function(){\n" + statements_rx + "});\n"; + code += "async function () {\n" + statements_rx + "});\n"; return code; }; @@ -28,4 +28,4 @@ Blockly.JavaScript['uart_data'] = function(block) { var dropdown_dataType = block.getFieldValue('dataType'); var code = variable_uart + '.' + dropdown_dataType; return [code, Blockly.JavaScript.ORDER_NONE]; -}; \ No newline at end of file +}; diff --git a/package.json b/package.json index dcac813..c3800a1 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "test": "echo \"Error: no test specified\" && exit 1" }, "author": "", - "license": "ISC", + "license": "MIT", "keywords": [ "arduino", "webduino", @@ -16,4 +16,4 @@ "dependencies": { "webduino-js": "0.x" } -} \ No newline at end of file +} pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy