From 5e2184b86b6c6384da310650d384eeab0566e0fc Mon Sep 17 00:00:00 2001 From: mkidkm Date: Mon, 29 Sep 2025 11:16:48 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EB=B8=94=EB=A1=9D=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/playground/blocks/hardware/block_ITPLE_board.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/playground/blocks/hardware/block_ITPLE_board.js b/src/playground/blocks/hardware/block_ITPLE_board.js index 3fb6f9012e..39457d4af4 100644 --- a/src/playground/blocks/hardware/block_ITPLE_board.js +++ b/src/playground/blocks/hardware/block_ITPLE_board.js @@ -344,9 +344,9 @@ Entry.ITPLE.getBlocks = function () { type: 'ITPLE_is_key_pressed', }, paramsKeyMap: { - KEY: 1, + KEY: 0, }, - "class": 'ITPLEGet', + "class": 'ITPLE', isNotFor: ['ITPLE'], func(sprite, script) { // 각 키에 대한 하드웨어 포트 정보를 객체로 관리하여 확장성을 높입니다. @@ -357,8 +357,8 @@ Entry.ITPLE.getBlocks = function () { '8': { type: 'DIGITAL', index: 8 }, }; - const seletedKey = script.getField('KEY'); - const portConfig = keyToPortMap[seletedKey]; + const selectedKey = script.getField('KEY'); + const portConfig = keyToPortMap[selectedKey]; // 유효하지 않은 키는 즉시 false를 반환합니다. if (!portConfig) { @@ -376,7 +376,7 @@ Entry.ITPLE.getBlocks = function () { js: [], py: [ { - syntax: 'Arduino.digitalRead(%1)==0', + syntax: 'Arduino.digitalRead("%1")==0', }, ], }, From dbe6360365b8530be321ddf279b06c35a32bc6cb Mon Sep 17 00:00:00 2001 From: LimHayoung Date: Mon, 29 Sep 2025 11:40:58 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=EB=B8=94=EB=A1=9D=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/playground/blocks/hardware/block_ITPLE_board.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/playground/blocks/hardware/block_ITPLE_board.js b/src/playground/blocks/hardware/block_ITPLE_board.js index 39457d4af4..7c8cb6cb20 100644 --- a/src/playground/blocks/hardware/block_ITPLE_board.js +++ b/src/playground/blocks/hardware/block_ITPLE_board.js @@ -346,7 +346,7 @@ Entry.ITPLE.getBlocks = function () { paramsKeyMap: { KEY: 0, }, - "class": 'ITPLE', + "class": 'ITPLEGet', isNotFor: ['ITPLE'], func(sprite, script) { // 각 키에 대한 하드웨어 포트 정보를 객체로 관리하여 확장성을 높입니다. @@ -1229,4 +1229,4 @@ Entry.ITPLE.getBlocks = function () { }; //endregion ITPLE 아두이노 확장모드 -module.exports = Entry.ITPLE; \ No newline at end of file +module.exports = Entry.ITPLE;