From 69b3201e6d7ce4e2412faf12169359633fa06610 Mon Sep 17 00:00:00 2001 From: osk2 Date: Thu, 6 Dec 2018 15:52:02 +0800 Subject: [PATCH 1/3] Update package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +} From 5718f74f7d173a6fdf815cd56f796f69e21da90c Mon Sep 17 00:00:00 2001 From: osk2 Date: Mon, 21 Oct 2019 16:57:21 +0800 Subject: [PATCH 2/3] Update javascript.js --- blockly/javascript.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 +}; From 52e73c62ef8ac38b30be78c39330fa82d0caae34 Mon Sep 17 00:00:00 2001 From: Rick Date: Wed, 22 Apr 2020 15:28:36 +0800 Subject: [PATCH 3/3] update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) 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.