Blockly.JavaScript.robot_move_angle = function () {
var dir = Blockly.JavaScript.valueToCode(this, 'dir', Blockly.JavaScript.ORDER_ASSIGNMENT) || '""';
var vel = Blockly.JavaScript.valueToCode(this, 'vel', Blockly.JavaScript.ORDER_ASSIGNMENT) || '""';
var angle = Blockly.JavaScript.valueToCode(this, 'angle', Blockly.JavaScript.ORDER_ASSIGNMENT) || '""';
var time = Blockly.JavaScript.valueToCode(this, 'time', Blockly.JavaScript.ORDER_ASSIGNMENT) || '""';
return "robot_move_angle("+dir+","+vel+","+angle+","+time+","+"setTimeout("+MAGIC_CALLBACK_CODE+", 1000*"+time+")\n;"
}
I wrote my code like this, and I know that NEXT_BLOCK works well.
But it has an error.
error said :
You have more open brackets than close brackets. Please see the hints in the Editor window
But I changed front-end for my project, so I can't use editor window.
So I want to see codes when I push upload button at my terminal.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Thank you Gordon!
I wrote my code like this, and I know that NEXT_BLOCK works well.
But it has an error.
error said :
You have more open brackets than close brackets. Please see the hints in the Editor window
But I changed front-end for my project, so I can't use editor window.
So I want to see codes when I push upload button at my terminal.
/upload.html
I know upload button use this function, so I add one line,
But it doesn't work. Is it possible to see uploaded codes at web ide's terminal??