diff --git a/src/playground/blocks/hardware/block_ITPLE_board.js b/src/playground/blocks/hardware/block_ITPLE_board.js index 3fb6f9012e..7c8cb6cb20 100644 --- a/src/playground/blocks/hardware/block_ITPLE_board.js +++ b/src/playground/blocks/hardware/block_ITPLE_board.js @@ -344,7 +344,7 @@ Entry.ITPLE.getBlocks = function () { type: 'ITPLE_is_key_pressed', }, paramsKeyMap: { - KEY: 1, + KEY: 0, }, "class": 'ITPLEGet', isNotFor: ['ITPLE'], @@ -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', }, ], }, @@ -1229,4 +1229,4 @@ Entry.ITPLE.getBlocks = function () { }; //endregion ITPLE 아두이노 확장모드 -module.exports = Entry.ITPLE; \ No newline at end of file +module.exports = Entry.ITPLE;