Skip to content
This repository was archived by the owner on Nov 22, 2021. It is now read-only.

Commit bde01b0

Browse files
author
Ke, Mingze
committed
Fix IRLed pin mappings
1 parent 19e40f0 commit bde01b0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

blocks/webduino.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3479,9 +3479,7 @@ Blockly.Blocks['irled_new'] = {
34793479
init: function () {
34803480
this.appendDummyInput()
34813481
.appendField(Blockly.Msg.WEBDUINO_IRLED, "紅外線發射,腳位:")
3482-
.appendField(new Blockly.FieldDropdown([
3483-
["9", "9"]
3484-
]), "pin_");
3482+
.appendField(new Blockly.FieldDropdown(Code.getPinDropdown), "pin_");
34853483
this.setOutput(true);
34863484
this.setColour(230);
34873485
this.setTooltip('');

0 commit comments

Comments
 (0)