Skip to content

Commit 3de91cc

Browse files
committed
wedo2のwedo2_trun_motor_offをRubyからブロックに変換できるようにしました
1 parent 29c2c91 commit 3de91cc

File tree

1 file changed

+4
-0
lines changed
  • src/lib/ruby-to-blocks-converter

1 file changed

+4
-0
lines changed

src/lib/ruby-to-blocks-converter/wedo2.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ const Wedo2Converter = {
1414
block = this._createBlock('wedo2_motorOn', 'statement');
1515
this._addInput(block, 'MOTOR_ID', this._createFieldBlock('wedo2_menu_MOTOR_ID', 'MOTOR_ID', args[0]))
1616
break;
17+
case 'wedo2_trun_motor_off':
18+
block = this._createBlock('wedo2_motorOff', 'statement');
19+
this._addInput(block, 'MOTOR_ID', this._createFieldBlock('wedo2_menu_MOTOR_ID', 'MOTOR_ID', args[0]))
20+
break;
1721
case 'wedo2_set_light_color':
1822
if (args.length === 1 && this._isNumberOrBlock(args[0])) {
1923
block = this._createBlock('wedo2_setLightHue', 'statement');

0 commit comments

Comments
 (0)