Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions src/playground/blocks/hardware/block_ITPLE_board.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ Entry.ITPLE.getBlocks = function () {
type: 'ITPLE_is_key_pressed',
},
paramsKeyMap: {
KEY: 1,
KEY: 0,
},
"class": 'ITPLEGet',
isNotFor: ['ITPLE'],
Expand All @@ -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) {
Expand All @@ -376,7 +376,7 @@ Entry.ITPLE.getBlocks = function () {
js: [],
py: [
{
syntax: 'Arduino.digitalRead(%1)==0',
syntax: 'Arduino.digitalRead("%1")==0',
},
],
},
Expand Down Expand Up @@ -1229,4 +1229,4 @@ Entry.ITPLE.getBlocks = function () {
};
//endregion ITPLE 아두이노 확장모드

module.exports = Entry.ITPLE;
module.exports = Entry.ITPLE;
Loading