// Do not edit this file; automatically generated by build.py.
'use strict';


// Copyright 2012 Google Inc.  Apache License 2.0
Blockly.Blocks.procedures={};Blockly.Blocks.procedures.HUE=290;
Blockly.Blocks.procedures_defnoreturn={init:function(){var a=new Blockly.FieldTextInput(Blockly.Msg.PROCEDURES_DEFNORETURN_PROCEDURE,Blockly.Procedures.rename);a.setSpellcheck(!1);this.appendDummyInput().appendField(Blockly.Msg.PROCEDURES_DEFNORETURN_TITLE).appendField(a,"NAME").appendField("","PARAMS");this.setMutator(new Blockly.Mutator(["procedures_mutatorarg"]));Blockly.Msg.PROCEDURES_DEFNORETURN_COMMENT&&this.setCommentText(Blockly.Msg.PROCEDURES_DEFNORETURN_COMMENT);this.setColour(Blockly.Blocks.procedures.HUE);
this.setTooltip(Blockly.Msg.PROCEDURES_DEFNORETURN_TOOLTIP);this.setHelpUrl(Blockly.Msg.PROCEDURES_DEFNORETURN_HELPURL);this.arguments_=[];this.setStatements_(!0);this.statementConnection_=null},validate:function(){var a=Blockly.Procedures.findLegalName(this.getFieldValue("NAME"),this);this.setFieldValue(a,"NAME")},setStatements_:function(a){this.hasStatements_!==a&&(a?(this.appendStatementInput("STACK").appendField(Blockly.Msg.PROCEDURES_DEFNORETURN_DO),this.getInput("RETURN")&&this.moveInputBefore("STACK",
"RETURN")):this.removeInput("STACK",!0),this.hasStatements_=a)},updateParams_:function(){for(var a=!1,b={},c=0;c<this.arguments_.length;c++){if(b["arg_"+this.arguments_[c].toLowerCase()]){a=!0;break}b["arg_"+this.arguments_[c].toLowerCase()]=!0}a?this.setWarningText(Blockly.Msg.PROCEDURES_DEF_DUPLICATE_WARNING):this.setWarningText(null);a="";this.arguments_.length&&(a=Blockly.Msg.PROCEDURES_BEFORE_PARAMS+" "+this.arguments_.join(", "));this.setFieldValue(a,"PARAMS")},mutationToDom:function(){for(var a=
document.createElement("mutation"),b=0;b<this.arguments_.length;b++){var c=document.createElement("arg");c.setAttribute("name",this.arguments_[b]);a.appendChild(c)}this.hasStatements_||a.setAttribute("statements","false");return a},domToMutation:function(a){this.arguments_=[];for(var b=0,c;c=a.childNodes[b];b++)"arg"==c.nodeName.toLowerCase()&&this.arguments_.push(c.getAttribute("name"));this.updateParams_();this.setStatements_("false"!==a.getAttribute("statements"))},decompose:function(a){var b=
a.newBlock("procedures_mutatorcontainer");b.initSvg();this.getInput("RETURN")?b.setFieldValue(this.hasStatements_?"TRUE":"FALSE","STATEMENTS"):b.getInput("STATEMENT_INPUT").setVisible(!1);for(var c=b.getInput("STACK").connection,d=0;d<this.arguments_.length;d++){var e=a.newBlock("procedures_mutatorarg");e.initSvg();e.setFieldValue(this.arguments_[d],"NAME");e.oldLocation=d;c.connect(e.previousConnection);c=e.nextConnection}Blockly.Procedures.mutateCallers(this.getFieldValue("NAME"),this.workspace,
this.arguments_,null);return b},compose:function(a){this.arguments_=[];this.paramIds_=[];for(var b=a.getInputTargetBlock("STACK");b;)this.arguments_.push(b.getFieldValue("NAME")),this.paramIds_.push(b.id),b=b.nextConnection&&b.nextConnection.targetBlock();this.updateParams_();Blockly.Procedures.mutateCallers(this.getFieldValue("NAME"),this.workspace,this.arguments_,this.paramIds_);a=a.getFieldValue("STATEMENTS");if(null!==a&&(a="TRUE"==a,this.hasStatements_!=a))if(a)this.setStatements_(!0),a=this.getInput("STACK").connection,
a.targetConnection||!this.statementConnection_||this.statementConnection_.targetConnection||this.statementConnection_.sourceBlock_.workspace!=this.workspace?this.statementConnection_=null:a.connect(this.statementConnection_);else{a=this.getInput("STACK").connection;if(this.statementConnection_=a.targetConnection)a=a.targetBlock(),a.setParent(null),a.bumpNeighbours_();this.setStatements_(!1)}},dispose:function(){var a=this.getFieldValue("NAME");Blockly.Procedures.disposeCallers(a,this.workspace);this.constructor.prototype.dispose.apply(this,
arguments)},getProcedureDef:function(){return[this.getFieldValue("NAME"),this.arguments_,!1]},getVars:function(){return this.arguments_},renameVar:function(a,b){for(var c=!1,d=0;d<this.arguments_.length;d++)Blockly.Names.equals(a,this.arguments_[d])&&(this.arguments_[d]=b,c=!0);if(c&&(this.updateParams_(),this.mutator.isVisible()))for(var c=this.mutator.workspace_.getAllBlocks(),d=0,e;e=c[d];d++)"procedures_mutatorarg"==e.type&&Blockly.Names.equals(a,e.getFieldValue("NAME"))&&e.setFieldValue(b,"NAME")},
customContextMenu:function(a){var b={enabled:!0},c=this.getFieldValue("NAME");b.text=Blockly.Msg.PROCEDURES_CREATE_DO.replace("%1",c);var d=goog.dom.createDom("mutation");d.setAttribute("name",c);for(var e=0;e<this.arguments_.length;e++)c=goog.dom.createDom("arg"),c.setAttribute("name",this.arguments_[e]),d.appendChild(c);d=goog.dom.createDom("block",null,d);d.setAttribute("type",this.callType_);b.callback=Blockly.ContextMenu.callbackFactory(this,d);a.push(b);if(!this.isCollapsed())for(e=0;e<this.arguments_.length;e++)b=
{enabled:!0},c=this.arguments_[e],b.text=Blockly.Msg.VARIABLES_SET_CREATE_GET.replace("%1",c),d=goog.dom.createDom("field",null,c),d.setAttribute("name","VAR"),d=goog.dom.createDom("block",null,d),d.setAttribute("type","variables_get"),b.callback=Blockly.ContextMenu.callbackFactory(this,d),a.push(b)},callType_:"procedures_callnoreturn"};
Blockly.Blocks.procedures_defreturn={init:function(){var a=new Blockly.FieldTextInput(Blockly.Msg.PROCEDURES_DEFRETURN_PROCEDURE,Blockly.Procedures.rename);a.setSpellcheck(!1);this.appendDummyInput().appendField(Blockly.Msg.PROCEDURES_DEFRETURN_TITLE).appendField(a,"NAME").appendField("","PARAMS");this.appendValueInput("RETURN").setAlign(Blockly.ALIGN_RIGHT).appendField(Blockly.Msg.PROCEDURES_DEFRETURN_RETURN);this.setMutator(new Blockly.Mutator(["procedures_mutatorarg"]));Blockly.Msg.PROCEDURES_DEFRETURN_COMMENT&&
this.setCommentText(Blockly.Msg.PROCEDURES_DEFRETURN_COMMENT);this.setColour(Blockly.Blocks.procedures.HUE);this.setTooltip(Blockly.Msg.PROCEDURES_DEFRETURN_TOOLTIP);this.setHelpUrl(Blockly.Msg.PROCEDURES_DEFRETURN_HELPURL);this.arguments_=[];this.setStatements_(!0);this.statementConnection_=null},setStatements_:Blockly.Blocks.procedures_defnoreturn.setStatements_,validate:Blockly.Blocks.procedures_defnoreturn.validate,updateParams_:Blockly.Blocks.procedures_defnoreturn.updateParams_,mutationToDom:Blockly.Blocks.procedures_defnoreturn.mutationToDom,
domToMutation:Blockly.Blocks.procedures_defnoreturn.domToMutation,decompose:Blockly.Blocks.procedures_defnoreturn.decompose,compose:Blockly.Blocks.procedures_defnoreturn.compose,dispose:Blockly.Blocks.procedures_defnoreturn.dispose,getProcedureDef:function(){return[this.getFieldValue("NAME"),this.arguments_,!0]},getVars:Blockly.Blocks.procedures_defnoreturn.getVars,renameVar:Blockly.Blocks.procedures_defnoreturn.renameVar,customContextMenu:Blockly.Blocks.procedures_defnoreturn.customContextMenu,callType_:"procedures_callreturn"};
Blockly.Blocks.procedures_mutatorcontainer={init:function(){this.appendDummyInput().appendField(Blockly.Msg.PROCEDURES_MUTATORCONTAINER_TITLE);this.appendStatementInput("STACK");this.appendDummyInput("STATEMENT_INPUT").appendField(Blockly.Msg.PROCEDURES_ALLOW_STATEMENTS).appendField(new Blockly.FieldCheckbox("TRUE"),"STATEMENTS");this.setColour(Blockly.Blocks.procedures.HUE);this.setTooltip(Blockly.Msg.PROCEDURES_MUTATORCONTAINER_TOOLTIP);this.contextMenu=!1}};
Blockly.Blocks.procedures_mutatorarg={init:function(){this.appendDummyInput().appendField(Blockly.Msg.PROCEDURES_MUTATORARG_TITLE).appendField(new Blockly.FieldTextInput("x",this.validator_),"NAME");this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(Blockly.Blocks.procedures.HUE);this.setTooltip(Blockly.Msg.PROCEDURES_MUTATORARG_TOOLTIP);this.contextMenu=!1},validator_:function(a){return(a=a.replace(/[\s\xa0]+/g," ").replace(/^ | $/g,""))||null}};
Blockly.Blocks.procedures_callnoreturn={init:function(){this.appendDummyInput("TOPROW").appendField("","NAME");this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(Blockly.Blocks.procedures.HUE);this.setHelpUrl(Blockly.Msg.PROCEDURES_CALLNORETURN_HELPURL);this.arguments_=[];this.quarkConnections_={};this.quarkArguments_=null},getProcedureCall:function(){return this.getFieldValue("NAME")},renameProcedure:function(a,b){Blockly.Names.equals(a,this.getProcedureCall())&&(this.setFieldValue(b,
"NAME"),this.setTooltip((this.outputConnection?Blockly.Msg.PROCEDURES_CALLRETURN_TOOLTIP:Blockly.Msg.PROCEDURES_CALLNORETURN_TOOLTIP).replace("%1",b)))},setProcedureParameters:function(a,b){if(b)if(goog.array.equals(this.arguments_,a))this.quarkArguments_=b;else{this.setCollapsed(!1);if(b.length!=a.length)throw"Error: paramNames and paramIds must be the same length.";this.quarkArguments_||(this.quarkConnections_={},a.join("\n")==this.arguments_.join("\n")?this.quarkArguments_=b:this.quarkArguments_=
[]);var c=this.rendered;this.rendered=!1;for(var d=this.arguments_.length-1;0<=d;d--){var e=this.getInput("ARG"+d);if(e){var f=e.connection.targetConnection;this.quarkConnections_[this.quarkArguments_[d]]=f;this.removeInput("ARG"+d)}}this.arguments_=[].concat(a);this.renderArgs_();if(this.quarkArguments_=b)for(d=0;d<this.arguments_.length;d++){var e=this.getInput("ARG"+d),g=this.quarkArguments_[d];g in this.quarkConnections_&&(f=this.quarkConnections_[g],!f||f.targetConnection||f.sourceBlock_.workspace!=
this.workspace?delete this.quarkConnections_[g]:e.connection.connect(f))}(this.rendered=c)&&this.render()}else this.quarkConnections_={},this.quarkArguments_=null},renderArgs_:function(){for(var a=0;a<this.arguments_.length;a++){var b=this.appendValueInput("ARG"+a).setAlign(Blockly.ALIGN_RIGHT).appendField(this.arguments_[a]);b.init()}if(b=this.getInput("TOPROW"))this.arguments_.length?this.getField("WITH")||(b.appendField(Blockly.Msg.PROCEDURES_CALL_BEFORE_PARAMS,"WITH"),b.init()):this.getField("WITH")&&
b.removeField("WITH")},mutationToDom:function(){var a=document.createElement("mutation");a.setAttribute("name",this.getProcedureCall());for(var b=0;b<this.arguments_.length;b++){var c=document.createElement("arg");c.setAttribute("name",this.arguments_[b]);a.appendChild(c)}return a},domToMutation:function(a){var b=a.getAttribute("name");this.setFieldValue(b,"NAME");this.setTooltip((this.outputConnection?Blockly.Msg.PROCEDURES_CALLRETURN_TOOLTIP:Blockly.Msg.PROCEDURES_CALLNORETURN_TOOLTIP).replace("%1",
b));if((b=Blockly.Procedures.getDefinition(b,this.workspace))&&b.mutator&&b.mutator.isVisible())this.setProcedureParameters(b.arguments_,b.paramIds_);else{for(var b=[],c=0,d;d=a.childNodes[c];c++)"arg"==d.nodeName.toLowerCase()&&b.push(d.getAttribute("name"));this.setProcedureParameters(b,b)}},renameVar:function(a,b){for(var c=0;c<this.arguments_.length;c++)Blockly.Names.equals(a,this.arguments_[c])&&(this.arguments_[c]=b,this.getInput("ARG"+c).fieldRow[0].setValue(b))},customContextMenu:function(a){var b=
{enabled:!0};b.text=Blockly.Msg.PROCEDURES_HIGHLIGHT_DEF;var c=this.getProcedureCall(),d=this.workspace;b.callback=function(){var a=Blockly.Procedures.getDefinition(c,d);a&&a.select()};a.push(b)}};
Blockly.Blocks.procedures_callreturn={init:function(){this.appendDummyInput("TOPROW").appendField("","NAME");this.setOutput(!0);this.setColour(Blockly.Blocks.procedures.HUE);this.setHelpUrl(Blockly.Msg.PROCEDURES_CALLRETURN_HELPURL);this.arguments_=[];this.quarkConnections_={};this.quarkArguments_=null},getProcedureCall:Blockly.Blocks.procedures_callnoreturn.getProcedureCall,renameProcedure:Blockly.Blocks.procedures_callnoreturn.renameProcedure,setProcedureParameters:Blockly.Blocks.procedures_callnoreturn.setProcedureParameters,
renderArgs_:Blockly.Blocks.procedures_callnoreturn.renderArgs_,mutationToDom:Blockly.Blocks.procedures_callnoreturn.mutationToDom,domToMutation:Blockly.Blocks.procedures_callnoreturn.domToMutation,renameVar:Blockly.Blocks.procedures_callnoreturn.renameVar,customContextMenu:Blockly.Blocks.procedures_callnoreturn.customContextMenu};
Blockly.Blocks.procedures_ifreturn={init:function(){this.appendValueInput("CONDITION").setCheck("Boolean").appendField(Blockly.Msg.CONTROLS_IF_MSG_IF);this.appendValueInput("VALUE").appendField(Blockly.Msg.PROCEDURES_DEFRETURN_RETURN);this.setInputsInline(!0);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(Blockly.Blocks.procedures.HUE);this.setTooltip(Blockly.Msg.PROCEDURES_IFRETURN_TOOLTIP);this.setHelpUrl(Blockly.Msg.PROCEDURES_IFRETURN_HELPURL);this.hasReturnValue_=!0},
mutationToDom:function(){var a=document.createElement("mutation");a.setAttribute("value",Number(this.hasReturnValue_));return a},domToMutation:function(a){this.hasReturnValue_=1==a.getAttribute("value");this.hasReturnValue_||(this.removeInput("VALUE"),this.appendDummyInput("VALUE").appendField(Blockly.Msg.PROCEDURES_DEFRETURN_RETURN))},onchange:function(){var a=!1,b=this;do{if(-1!=this.FUNCTION_TYPES.indexOf(b.type)){a=!0;break}b=b.getSurroundParent()}while(b);a?("procedures_defnoreturn"==b.type&&
this.hasReturnValue_?(this.removeInput("VALUE"),this.appendDummyInput("VALUE").appendField(Blockly.Msg.PROCEDURES_DEFRETURN_RETURN),this.hasReturnValue_=!1):"procedures_defreturn"!=b.type||this.hasReturnValue_||(this.removeInput("VALUE"),this.appendValueInput("VALUE").appendField(Blockly.Msg.PROCEDURES_DEFRETURN_RETURN),this.hasReturnValue_=!0),this.setWarningText(null)):this.setWarningText(Blockly.Msg.PROCEDURES_IFRETURN_WARNING)},FUNCTION_TYPES:["procedures_defnoreturn","procedures_defreturn"]};Blockly.Blocks.misc={};Blockly.Blocks.tinkerforge_misc_sleep={init:function(){this.appendDummyInput().appendField("Sleep");this.appendValueInput("_TIME_AMOUNT").setCheck("Number");this.appendDummyInput().appendField(new Blockly.FieldDropdown([["Millisecond(s)","TIME_UNIT_MS"],["Second(s)","TIME_UNIT_S"]]),"_TIME_UNIT");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(20);this.setHelpUrl("")}};
Blockly.Blocks.tinkerforge_misc_repeat_with_interval={init:function(){this.appendDummyInput().appendField("Keep repeating with");this.appendValueInput("_REPEAT_INTERVAL_TIME_AMOUNT").setCheck("Number");this.appendDummyInput().appendField(new Blockly.FieldDropdown([["Millisecond(s)","TIME_UNIT_MS"],["Second(s)","TIME_UNIT_S"]]),"_REPEAT_INTERVAL_TIME_UNIT");this.appendDummyInput().appendField("interval");this.appendStatementInput("_REPEAT_INTERVAL_STATEMENTS");this.setInputsInline(!0);this.setOutput(!1);
this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(20);this.setHelpUrl("")}};
Blockly.Blocks.tinkerforge_misc_write_output_field={init:function(){this.appendDummyInput().appendField("Write");this.appendValueInput("_TEXT_WIDGET_OUTPUT_FIELD").setCheck("String");this.appendDummyInput().appendField("to output field");this.appendValueInput("_WIDGET_OUTPUT_FIELD").setCheck("String");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(20);this.setHelpUrl("")}};
Blockly.Blocks.tinkerforge_misc_update_plot_widget={init:function(){this.appendDummyInput().appendField("Update plot widget");this.appendValueInput("_WIDGET_PLOT").setCheck("String");this.appendDummyInput().appendField("with value");this.appendValueInput("_UPDATE_VALUE_WIDGET_PLOT").setCheck("Number");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(20);this.setHelpUrl("")}};Blockly.Blocks.loops={};Blockly.Blocks.loops.HUE=120;Blockly.Blocks.controls_repeat_ext={init:function(){this.jsonInit({message0:Blockly.Msg.CONTROLS_REPEAT_TITLE,args0:[{type:"input_value",name:"TIMES",check:"Number"}],previousStatement:null,nextStatement:null,colour:Blockly.Blocks.loops.HUE,tooltip:Blockly.Msg.CONTROLS_REPEAT_TOOLTIP,helpUrl:Blockly.Msg.CONTROLS_REPEAT_HELPURL});this.appendStatementInput("DO").appendField(Blockly.Msg.CONTROLS_REPEAT_INPUT_DO)}};
Blockly.Blocks.controls_repeat={init:function(){this.jsonInit({message0:Blockly.Msg.CONTROLS_REPEAT_TITLE,args0:[{type:"field_input",name:"TIMES",text:"10"}],previousStatement:null,nextStatement:null,colour:Blockly.Blocks.loops.HUE,tooltip:Blockly.Msg.CONTROLS_REPEAT_TOOLTIP,helpUrl:Blockly.Msg.CONTROLS_REPEAT_HELPURL});this.appendStatementInput("DO").appendField(Blockly.Msg.CONTROLS_REPEAT_INPUT_DO);this.getField("TIMES").setValidator(Blockly.FieldTextInput.nonnegativeIntegerValidator)}};
Blockly.Blocks.controls_whileUntil={init:function(){var a=[[Blockly.Msg.CONTROLS_WHILEUNTIL_OPERATOR_WHILE,"WHILE"],[Blockly.Msg.CONTROLS_WHILEUNTIL_OPERATOR_UNTIL,"UNTIL"]];this.setHelpUrl(Blockly.Msg.CONTROLS_WHILEUNTIL_HELPURL);this.setColour(Blockly.Blocks.loops.HUE);this.appendValueInput("BOOL").setCheck("Boolean").appendField(new Blockly.FieldDropdown(a),"MODE");this.appendStatementInput("DO").appendField(Blockly.Msg.CONTROLS_WHILEUNTIL_INPUT_DO);this.setPreviousStatement(!0);this.setNextStatement(!0);
var b=this;this.setTooltip(function(){var a=b.getFieldValue("MODE");return{WHILE:Blockly.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_WHILE,UNTIL:Blockly.Msg.CONTROLS_WHILEUNTIL_TOOLTIP_UNTIL}[a]})}};
Blockly.Blocks.controls_for={init:function(){this.jsonInit({message0:Blockly.Msg.CONTROLS_FOR_TITLE,args0:[{type:"field_variable",name:"VAR",variable:null},{type:"input_value",name:"FROM",check:"Number",align:"RIGHT"},{type:"input_value",name:"TO",check:"Number",align:"RIGHT"},{type:"input_value",name:"BY",check:"Number",align:"RIGHT"}],inputsInline:!0,previousStatement:null,nextStatement:null,colour:Blockly.Blocks.loops.HUE,helpUrl:Blockly.Msg.CONTROLS_FOR_HELPURL});this.appendStatementInput("DO").appendField(Blockly.Msg.CONTROLS_FOR_INPUT_DO);
var a=this;this.setTooltip(function(){return Blockly.Msg.CONTROLS_FOR_TOOLTIP.replace("%1",a.getFieldValue("VAR"))})},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(a,b){Blockly.Names.equals(a,this.getFieldValue("VAR"))&&this.setFieldValue(b,"VAR")},customContextMenu:function(a){if(!this.isCollapsed()){var b={enabled:!0},c=this.getFieldValue("VAR");b.text=Blockly.Msg.VARIABLES_SET_CREATE_GET.replace("%1",c);c=goog.dom.createDom("field",null,c);c.setAttribute("name","VAR");
c=goog.dom.createDom("block",null,c);c.setAttribute("type","variables_get");b.callback=Blockly.ContextMenu.callbackFactory(this,c);a.push(b)}}};
Blockly.Blocks.controls_forEach={init:function(){this.jsonInit({message0:Blockly.Msg.CONTROLS_FOREACH_TITLE,args0:[{type:"field_variable",name:"VAR",variable:null},{type:"input_value",name:"LIST",check:"Array"}],previousStatement:null,nextStatement:null,colour:Blockly.Blocks.loops.HUE,helpUrl:Blockly.Msg.CONTROLS_FOREACH_HELPURL});this.appendStatementInput("DO").appendField(Blockly.Msg.CONTROLS_FOREACH_INPUT_DO);var a=this;this.setTooltip(function(){return Blockly.Msg.CONTROLS_FOREACH_TOOLTIP.replace("%1",
a.getFieldValue("VAR"))})},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(a,b){Blockly.Names.equals(a,this.getFieldValue("VAR"))&&this.setFieldValue(b,"VAR")},customContextMenu:Blockly.Blocks.controls_for.customContextMenu};
Blockly.Blocks.controls_flow_statements={init:function(){var a=[[Blockly.Msg.CONTROLS_FLOW_STATEMENTS_OPERATOR_BREAK,"BREAK"],[Blockly.Msg.CONTROLS_FLOW_STATEMENTS_OPERATOR_CONTINUE,"CONTINUE"]];this.setHelpUrl(Blockly.Msg.CONTROLS_FLOW_STATEMENTS_HELPURL);this.setColour(Blockly.Blocks.loops.HUE);this.appendDummyInput().appendField(new Blockly.FieldDropdown(a),"FLOW");this.setPreviousStatement(!0);var b=this;this.setTooltip(function(){var a=b.getFieldValue("FLOW");return{BREAK:Blockly.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_BREAK,
CONTINUE:Blockly.Msg.CONTROLS_FLOW_STATEMENTS_TOOLTIP_CONTINUE}[a]})},onchange:function(){var a=!1,b=this;do{if(-1!=this.LOOP_TYPES.indexOf(b.type)){a=!0;break}b=b.getSurroundParent()}while(b);a?this.setWarningText(null):this.setWarningText(Blockly.Msg.CONTROLS_FLOW_STATEMENTS_WARNING)},LOOP_TYPES:["controls_repeat","controls_repeat_ext","controls_forEach","controls_for","controls_whileUntil"]};Blockly.Blocks.texts={};Blockly.Blocks.texts.HUE=160;
Blockly.Blocks.text={init:function(){this.setHelpUrl(Blockly.Msg.TEXT_TEXT_HELPURL);this.setColour(Blockly.Blocks.texts.HUE);this.appendDummyInput().appendField(this.newQuote_(!0)).appendField(new Blockly.FieldTextInput(""),"TEXT").appendField(this.newQuote_(!1));this.setOutput(!0,"String");var a=this;this.setTooltip(function(){var b=a.getParent();return b&&b.tooltip||Blockly.Msg.TEXT_TEXT_TOOLTIP})},newQuote_:function(a){return new Blockly.FieldImage(a==this.RTL?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAKCAQAAAAqJXdxAAAAqUlEQVQI1z3KvUpCcRiA8ef9E4JNHhI0aFEacm1o0BsI0Slx8wa8gLauoDnoBhq7DcfWhggONDmJJgqCPA7neJ7p934EOOKOnM8Q7PDElo/4x4lFb2DmuUjcUzS3URnGib9qaPNbuXvBO3sGPHJDRG6fGVdMSeWDP2q99FQdFrz26Gu5Tq7dFMzUvbXy8KXeAj57cOklgA+u1B5AoslLtGIHQMaCVnwDnADZIFIrXsoXrgAAAABJRU5ErkJggg==":
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAKCAQAAAAqJXdxAAAAn0lEQVQI1z3OMa5BURSF4f/cQhAKjUQhuQmFNwGJEUi0RKN5rU7FHKhpjEH3TEMtkdBSCY1EIv8r7nFX9e29V7EBAOvu7RPjwmWGH/VuF8CyN9/OAdvqIXYLvtRaNjx9mMTDyo+NjAN1HNcl9ZQ5oQMM3dgDUqDo1l8DzvwmtZN7mnD+PkmLa+4mhrxVA9fRowBWmVBhFy5gYEjKMfz9AylsaRRgGzvZAAAAAElFTkSuQmCC",12,12,'"')}};
Blockly.Blocks.text_join={init:function(){this.setHelpUrl(Blockly.Msg.TEXT_JOIN_HELPURL);this.setColour(Blockly.Blocks.texts.HUE);this.itemCount_=2;this.updateShape_();this.setOutput(!0,"String");this.setMutator(new Blockly.Mutator(["text_create_join_item"]));this.setTooltip(Blockly.Msg.TEXT_JOIN_TOOLTIP)},mutationToDom:function(){var a=document.createElement("mutation");a.setAttribute("items",this.itemCount_);return a},domToMutation:function(a){this.itemCount_=parseInt(a.getAttribute("items"),10);
this.updateShape_()},decompose:function(a){var b=a.newBlock("text_create_join_container");b.initSvg();for(var c=b.getInput("STACK").connection,d=0;d<this.itemCount_;d++){var e=a.newBlock("text_create_join_item");e.initSvg();c.connect(e.previousConnection);c=e.nextConnection}return b},compose:function(a){var b=a.getInputTargetBlock("STACK");for(a=[];b;)a.push(b.valueConnection_),b=b.nextConnection&&b.nextConnection.targetBlock();this.itemCount_=a.length;this.updateShape_();for(b=0;b<this.itemCount_;b++)a[b]&&
this.getInput("ADD"+b).connection.connect(a[b])},saveConnections:function(a){a=a.getInputTargetBlock("STACK");for(var b=0;a;){var c=this.getInput("ADD"+b);a.valueConnection_=c&&c.connection.targetConnection;b++;a=a.nextConnection&&a.nextConnection.targetBlock()}},updateShape_:function(){if(this.getInput("EMPTY"))this.removeInput("EMPTY");else for(var a=0;this.getInput("ADD"+a);)this.removeInput("ADD"+a),a++;if(0==this.itemCount_)this.appendDummyInput("EMPTY").appendField(this.newQuote_(!0)).appendField(this.newQuote_(!1));
else for(a=0;a<this.itemCount_;a++){var b=this.appendValueInput("ADD"+a);0==a&&b.appendField(Blockly.Msg.TEXT_JOIN_TITLE_CREATEWITH)}},newQuote_:Blockly.Blocks.text.newQuote_};Blockly.Blocks.text_create_join_container={init:function(){this.setColour(Blockly.Blocks.texts.HUE);this.appendDummyInput().appendField(Blockly.Msg.TEXT_CREATE_JOIN_TITLE_JOIN);this.appendStatementInput("STACK");this.setTooltip(Blockly.Msg.TEXT_CREATE_JOIN_TOOLTIP);this.contextMenu=!1}};
Blockly.Blocks.text_create_join_item={init:function(){this.setColour(Blockly.Blocks.texts.HUE);this.appendDummyInput().appendField(Blockly.Msg.TEXT_CREATE_JOIN_ITEM_TITLE_ITEM);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setTooltip(Blockly.Msg.TEXT_CREATE_JOIN_ITEM_TOOLTIP);this.contextMenu=!1}};
Blockly.Blocks.text_append={init:function(){this.setHelpUrl(Blockly.Msg.TEXT_APPEND_HELPURL);this.setColour(Blockly.Blocks.texts.HUE);this.appendValueInput("TEXT").appendField(Blockly.Msg.TEXT_APPEND_TO).appendField(new Blockly.FieldVariable(Blockly.Msg.TEXT_APPEND_VARIABLE),"VAR").appendField(Blockly.Msg.TEXT_APPEND_APPENDTEXT);this.setPreviousStatement(!0);this.setNextStatement(!0);var a=this;this.setTooltip(function(){return Blockly.Msg.TEXT_APPEND_TOOLTIP.replace("%1",a.getFieldValue("VAR"))})},
getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(a,b){Blockly.Names.equals(a,this.getFieldValue("VAR"))&&this.setFieldValue(b,"VAR")}};Blockly.Blocks.text_length={init:function(){this.jsonInit({message0:Blockly.Msg.TEXT_LENGTH_TITLE,args0:[{type:"input_value",name:"VALUE",check:["String","Array"]}],output:"Number",colour:Blockly.Blocks.texts.HUE,tooltip:Blockly.Msg.TEXT_LENGTH_TOOLTIP,helpUrl:Blockly.Msg.TEXT_LENGTH_HELPURL})}};
Blockly.Blocks.text_isEmpty={init:function(){this.jsonInit({message0:Blockly.Msg.TEXT_ISEMPTY_TITLE,args0:[{type:"input_value",name:"VALUE",check:["String","Array"]}],output:"Boolean",colour:Blockly.Blocks.texts.HUE,tooltip:Blockly.Msg.TEXT_ISEMPTY_TOOLTIP,helpUrl:Blockly.Msg.TEXT_ISEMPTY_HELPURL})}};
Blockly.Blocks.text_indexOf={init:function(){var a=[[Blockly.Msg.TEXT_INDEXOF_OPERATOR_FIRST,"FIRST"],[Blockly.Msg.TEXT_INDEXOF_OPERATOR_LAST,"LAST"]];this.setHelpUrl(Blockly.Msg.TEXT_INDEXOF_HELPURL);this.setColour(Blockly.Blocks.texts.HUE);this.setOutput(!0,"Number");this.appendValueInput("VALUE").setCheck("String").appendField(Blockly.Msg.TEXT_INDEXOF_INPUT_INTEXT);this.appendValueInput("FIND").setCheck("String").appendField(new Blockly.FieldDropdown(a),"END");Blockly.Msg.TEXT_INDEXOF_TAIL&&this.appendDummyInput().appendField(Blockly.Msg.TEXT_INDEXOF_TAIL);
this.setInputsInline(!0);this.setTooltip(Blockly.Msg.TEXT_INDEXOF_TOOLTIP)}};
Blockly.Blocks.text_charAt={init:function(){this.WHERE_OPTIONS=[[Blockly.Msg.TEXT_CHARAT_FROM_START,"FROM_START"],[Blockly.Msg.TEXT_CHARAT_FROM_END,"FROM_END"],[Blockly.Msg.TEXT_CHARAT_FIRST,"FIRST"],[Blockly.Msg.TEXT_CHARAT_LAST,"LAST"],[Blockly.Msg.TEXT_CHARAT_RANDOM,"RANDOM"]];this.setHelpUrl(Blockly.Msg.TEXT_CHARAT_HELPURL);this.setColour(Blockly.Blocks.texts.HUE);this.setOutput(!0,"String");this.appendValueInput("VALUE").setCheck("String").appendField(Blockly.Msg.TEXT_CHARAT_INPUT_INTEXT);this.appendDummyInput("AT");
this.setInputsInline(!0);this.updateAt_(!0);this.setTooltip(Blockly.Msg.TEXT_CHARAT_TOOLTIP)},mutationToDom:function(){var a=document.createElement("mutation"),b=this.getInput("AT").type==Blockly.INPUT_VALUE;a.setAttribute("at",b);return a},domToMutation:function(a){a="false"!=a.getAttribute("at");this.updateAt_(a)},updateAt_:function(a){this.removeInput("AT");this.removeInput("ORDINAL",!0);a?(this.appendValueInput("AT").setCheck("Number"),Blockly.Msg.ORDINAL_NUMBER_SUFFIX&&this.appendDummyInput("ORDINAL").appendField(Blockly.Msg.ORDINAL_NUMBER_SUFFIX)):
this.appendDummyInput("AT");Blockly.Msg.TEXT_CHARAT_TAIL&&(this.removeInput("TAIL",!0),this.appendDummyInput("TAIL").appendField(Blockly.Msg.TEXT_CHARAT_TAIL));var b=new Blockly.FieldDropdown(this.WHERE_OPTIONS,function(b){var d="FROM_START"==b||"FROM_END"==b;if(d!=a){var e=this.sourceBlock_;e.updateAt_(d);e.setFieldValue(b,"WHERE");return null}});this.getInput("AT").appendField(b,"WHERE")}};
Blockly.Blocks.text_getSubstring={init:function(){this.WHERE_OPTIONS_1=[[Blockly.Msg.TEXT_GET_SUBSTRING_START_FROM_START,"FROM_START"],[Blockly.Msg.TEXT_GET_SUBSTRING_START_FROM_END,"FROM_END"],[Blockly.Msg.TEXT_GET_SUBSTRING_START_FIRST,"FIRST"]];this.WHERE_OPTIONS_2=[[Blockly.Msg.TEXT_GET_SUBSTRING_END_FROM_START,"FROM_START"],[Blockly.Msg.TEXT_GET_SUBSTRING_END_FROM_END,"FROM_END"],[Blockly.Msg.TEXT_GET_SUBSTRING_END_LAST,"LAST"]];this.setHelpUrl(Blockly.Msg.TEXT_GET_SUBSTRING_HELPURL);this.setColour(Blockly.Blocks.texts.HUE);
this.appendValueInput("STRING").setCheck("String").appendField(Blockly.Msg.TEXT_GET_SUBSTRING_INPUT_IN_TEXT);this.appendDummyInput("AT1");this.appendDummyInput("AT2");Blockly.Msg.TEXT_GET_SUBSTRING_TAIL&&this.appendDummyInput("TAIL").appendField(Blockly.Msg.TEXT_GET_SUBSTRING_TAIL);this.setInputsInline(!0);this.setOutput(!0,"String");this.updateAt_(1,!0);this.updateAt_(2,!0);this.setTooltip(Blockly.Msg.TEXT_GET_SUBSTRING_TOOLTIP)},mutationToDom:function(){var a=document.createElement("mutation"),
b=this.getInput("AT1").type==Blockly.INPUT_VALUE;a.setAttribute("at1",b);b=this.getInput("AT2").type==Blockly.INPUT_VALUE;a.setAttribute("at2",b);return a},domToMutation:function(a){var b="true"==a.getAttribute("at1");a="true"==a.getAttribute("at2");this.updateAt_(1,b);this.updateAt_(2,a)},updateAt_:function(a,b){this.removeInput("AT"+a);this.removeInput("ORDINAL"+a,!0);b?(this.appendValueInput("AT"+a).setCheck("Number"),Blockly.Msg.ORDINAL_NUMBER_SUFFIX&&this.appendDummyInput("ORDINAL"+a).appendField(Blockly.Msg.ORDINAL_NUMBER_SUFFIX)):
this.appendDummyInput("AT"+a);2==a&&Blockly.Msg.TEXT_GET_SUBSTRING_TAIL&&(this.removeInput("TAIL",!0),this.appendDummyInput("TAIL").appendField(Blockly.Msg.TEXT_GET_SUBSTRING_TAIL));var c=new Blockly.FieldDropdown(this["WHERE_OPTIONS_"+a],function(c){var e="FROM_START"==c||"FROM_END"==c;if(e!=b){var f=this.sourceBlock_;f.updateAt_(a,e);f.setFieldValue(c,"WHERE"+a);return null}});this.getInput("AT"+a).appendField(c,"WHERE"+a);1==a&&this.moveInputBefore("AT1","AT2")}};
Blockly.Blocks.text_changeCase={init:function(){var a=[[Blockly.Msg.TEXT_CHANGECASE_OPERATOR_UPPERCASE,"UPPERCASE"],[Blockly.Msg.TEXT_CHANGECASE_OPERATOR_LOWERCASE,"LOWERCASE"],[Blockly.Msg.TEXT_CHANGECASE_OPERATOR_TITLECASE,"TITLECASE"]];this.setHelpUrl(Blockly.Msg.TEXT_CHANGECASE_HELPURL);this.setColour(Blockly.Blocks.texts.HUE);this.appendValueInput("TEXT").setCheck("String").appendField(new Blockly.FieldDropdown(a),"CASE");this.setOutput(!0,"String");this.setTooltip(Blockly.Msg.TEXT_CHANGECASE_TOOLTIP)}};
Blockly.Blocks.text_trim={init:function(){var a=[[Blockly.Msg.TEXT_TRIM_OPERATOR_BOTH,"BOTH"],[Blockly.Msg.TEXT_TRIM_OPERATOR_LEFT,"LEFT"],[Blockly.Msg.TEXT_TRIM_OPERATOR_RIGHT,"RIGHT"]];this.setHelpUrl(Blockly.Msg.TEXT_TRIM_HELPURL);this.setColour(Blockly.Blocks.texts.HUE);this.appendValueInput("TEXT").setCheck("String").appendField(new Blockly.FieldDropdown(a),"MODE");this.setOutput(!0,"String");this.setTooltip(Blockly.Msg.TEXT_TRIM_TOOLTIP)}};
Blockly.Blocks.text_print={init:function(){this.jsonInit({message0:Blockly.Msg.TEXT_PRINT_TITLE,args0:[{type:"input_value",name:"TEXT"}],previousStatement:null,nextStatement:null,colour:Blockly.Blocks.texts.HUE,tooltip:Blockly.Msg.TEXT_PRINT_TOOLTIP,helpUrl:Blockly.Msg.TEXT_PRINT_HELPURL})}};
Blockly.Blocks.text_prompt_ext={init:function(){var a=[[Blockly.Msg.TEXT_PROMPT_TYPE_TEXT,"TEXT"],[Blockly.Msg.TEXT_PROMPT_TYPE_NUMBER,"NUMBER"]];this.setHelpUrl(Blockly.Msg.TEXT_PROMPT_HELPURL);this.setColour(Blockly.Blocks.texts.HUE);var b=this,a=new Blockly.FieldDropdown(a,function(a){b.updateType_(a)});this.appendValueInput("TEXT").appendField(a,"TYPE");this.setOutput(!0,"String");this.setTooltip(function(){return"TEXT"==b.getFieldValue("TYPE")?Blockly.Msg.TEXT_PROMPT_TOOLTIP_TEXT:Blockly.Msg.TEXT_PROMPT_TOOLTIP_NUMBER})},
updateType_:function(a){"NUMBER"==a?this.outputConnection.setCheck("Number"):this.outputConnection.setCheck("String")},mutationToDom:function(){var a=document.createElement("mutation");a.setAttribute("type",this.getFieldValue("TYPE"));return a},domToMutation:function(a){this.updateType_(a.getAttribute("type"))}};
Blockly.Blocks.text_prompt={init:function(){var a=[[Blockly.Msg.TEXT_PROMPT_TYPE_TEXT,"TEXT"],[Blockly.Msg.TEXT_PROMPT_TYPE_NUMBER,"NUMBER"]],b=this;this.setHelpUrl(Blockly.Msg.TEXT_PROMPT_HELPURL);this.setColour(Blockly.Blocks.texts.HUE);a=new Blockly.FieldDropdown(a,function(a){b.updateType_(a)});this.appendDummyInput().appendField(a,"TYPE").appendField(this.newQuote_(!0)).appendField(new Blockly.FieldTextInput(""),"TEXT").appendField(this.newQuote_(!1));this.setOutput(!0,"String");b=this;this.setTooltip(function(){return"TEXT"==
b.getFieldValue("TYPE")?Blockly.Msg.TEXT_PROMPT_TOOLTIP_TEXT:Blockly.Msg.TEXT_PROMPT_TOOLTIP_NUMBER})},newQuote_:Blockly.Blocks.text.newQuote_,updateType_:Blockly.Blocks.text_prompt_ext.updateType_,mutationToDom:Blockly.Blocks.text_prompt_ext.mutationToDom,domToMutation:Blockly.Blocks.text_prompt_ext.domToMutation};Blockly.Blocks.logic={};Blockly.Blocks.logic.HUE=210;
Blockly.Blocks.controls_if={init:function(){this.setHelpUrl(Blockly.Msg.CONTROLS_IF_HELPURL);this.setColour(Blockly.Blocks.logic.HUE);this.appendValueInput("IF0").setCheck("Boolean").appendField(Blockly.Msg.CONTROLS_IF_MSG_IF);this.appendStatementInput("DO0").appendField(Blockly.Msg.CONTROLS_IF_MSG_THEN);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setMutator(new Blockly.Mutator(["controls_if_elseif","controls_if_else"]));var a=this;this.setTooltip(function(){if(a.elseifCount_||a.elseCount_){if(!a.elseifCount_&&
a.elseCount_)return Blockly.Msg.CONTROLS_IF_TOOLTIP_2;if(a.elseifCount_&&!a.elseCount_)return Blockly.Msg.CONTROLS_IF_TOOLTIP_3;if(a.elseifCount_&&a.elseCount_)return Blockly.Msg.CONTROLS_IF_TOOLTIP_4}else return Blockly.Msg.CONTROLS_IF_TOOLTIP_1;return""});this.elseCount_=this.elseifCount_=0},mutationToDom:function(){if(!this.elseifCount_&&!this.elseCount_)return null;var a=document.createElement("mutation");this.elseifCount_&&a.setAttribute("elseif",this.elseifCount_);this.elseCount_&&a.setAttribute("else",
1);return a},domToMutation:function(a){this.elseifCount_=parseInt(a.getAttribute("elseif"),10)||0;this.elseCount_=parseInt(a.getAttribute("else"),10)||0;for(a=1;a<=this.elseifCount_;a++)this.appendValueInput("IF"+a).setCheck("Boolean").appendField(Blockly.Msg.CONTROLS_IF_MSG_ELSEIF),this.appendStatementInput("DO"+a).appendField(Blockly.Msg.CONTROLS_IF_MSG_THEN);this.elseCount_&&this.appendStatementInput("ELSE").appendField(Blockly.Msg.CONTROLS_IF_MSG_ELSE)},decompose:function(a){var b=a.newBlock("controls_if_if");
b.initSvg();for(var c=b.nextConnection,d=1;d<=this.elseifCount_;d++){var e=a.newBlock("controls_if_elseif");e.initSvg();c.connect(e.previousConnection);c=e.nextConnection}this.elseCount_&&(a=a.newBlock("controls_if_else"),a.initSvg(),c.connect(a.previousConnection));return b},compose:function(a){this.elseCount_&&this.removeInput("ELSE");this.elseCount_=0;for(var b=this.elseifCount_;0<b;b--)this.removeInput("IF"+b),this.removeInput("DO"+b);this.elseifCount_=0;for(a=a.nextConnection.targetBlock();a;){switch(a.type){case "controls_if_elseif":this.elseifCount_++;
var b=this.appendValueInput("IF"+this.elseifCount_).setCheck("Boolean").appendField(Blockly.Msg.CONTROLS_IF_MSG_ELSEIF),c=this.appendStatementInput("DO"+this.elseifCount_);c.appendField(Blockly.Msg.CONTROLS_IF_MSG_THEN);a.valueConnection_&&b.connection.connect(a.valueConnection_);a.statementConnection_&&c.connection.connect(a.statementConnection_);break;case "controls_if_else":this.elseCount_++;b=this.appendStatementInput("ELSE");b.appendField(Blockly.Msg.CONTROLS_IF_MSG_ELSE);a.statementConnection_&&
b.connection.connect(a.statementConnection_);break;default:throw"Unknown block type.";}a=a.nextConnection&&a.nextConnection.targetBlock()}},saveConnections:function(a){a=a.nextConnection.targetBlock();for(var b=1;a;){switch(a.type){case "controls_if_elseif":var c=this.getInput("IF"+b),d=this.getInput("DO"+b);a.valueConnection_=c&&c.connection.targetConnection;a.statementConnection_=d&&d.connection.targetConnection;b++;break;case "controls_if_else":d=this.getInput("ELSE");a.statementConnection_=d&&
d.connection.targetConnection;break;default:throw"Unknown block type.";}a=a.nextConnection&&a.nextConnection.targetBlock()}}};Blockly.Blocks.controls_if_if={init:function(){this.setColour(Blockly.Blocks.logic.HUE);this.appendDummyInput().appendField(Blockly.Msg.CONTROLS_IF_IF_TITLE_IF);this.setNextStatement(!0);this.setTooltip(Blockly.Msg.CONTROLS_IF_IF_TOOLTIP);this.contextMenu=!1}};
Blockly.Blocks.controls_if_elseif={init:function(){this.setColour(Blockly.Blocks.logic.HUE);this.appendDummyInput().appendField(Blockly.Msg.CONTROLS_IF_ELSEIF_TITLE_ELSEIF);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setTooltip(Blockly.Msg.CONTROLS_IF_ELSEIF_TOOLTIP);this.contextMenu=!1}};
Blockly.Blocks.controls_if_else={init:function(){this.setColour(Blockly.Blocks.logic.HUE);this.appendDummyInput().appendField(Blockly.Msg.CONTROLS_IF_ELSE_TITLE_ELSE);this.setPreviousStatement(!0);this.setTooltip(Blockly.Msg.CONTROLS_IF_ELSE_TOOLTIP);this.contextMenu=!1}};
Blockly.Blocks.logic_compare={init:function(){var a=this.RTL?[["=","EQ"],["\u2260","NEQ"],[">","LT"],["\u2265","LTE"],["<","GT"],["\u2264","GTE"]]:[["=","EQ"],["\u2260","NEQ"],["<","LT"],["\u2264","LTE"],[">","GT"],["\u2265","GTE"]];this.setHelpUrl(Blockly.Msg.LOGIC_COMPARE_HELPURL);this.setColour(Blockly.Blocks.logic.HUE);this.setOutput(!0,"Boolean");this.appendValueInput("A");this.appendValueInput("B").appendField(new Blockly.FieldDropdown(a),"OP");this.setInputsInline(!0);var b=this;this.setTooltip(function(){var a=
b.getFieldValue("OP");return{EQ:Blockly.Msg.LOGIC_COMPARE_TOOLTIP_EQ,NEQ:Blockly.Msg.LOGIC_COMPARE_TOOLTIP_NEQ,LT:Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LT,LTE:Blockly.Msg.LOGIC_COMPARE_TOOLTIP_LTE,GT:Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GT,GTE:Blockly.Msg.LOGIC_COMPARE_TOOLTIP_GTE}[a]});this.prevBlocks_=[null,null]},onchange:function(){var a=this.getInputTargetBlock("A"),b=this.getInputTargetBlock("B");if(a&&b&&!a.outputConnection.checkType_(b.outputConnection))for(var c=0;c<this.prevBlocks_.length;c++){var d=
this.prevBlocks_[c];if(d===a||d===b)d.setParent(null),d.bumpNeighbours_()}this.prevBlocks_[0]=a;this.prevBlocks_[1]=b}};
Blockly.Blocks.logic_operation={init:function(){var a=[[Blockly.Msg.LOGIC_OPERATION_AND,"AND"],[Blockly.Msg.LOGIC_OPERATION_OR,"OR"]];this.setHelpUrl(Blockly.Msg.LOGIC_OPERATION_HELPURL);this.setColour(Blockly.Blocks.logic.HUE);this.setOutput(!0,"Boolean");this.appendValueInput("A").setCheck("Boolean");this.appendValueInput("B").setCheck("Boolean").appendField(new Blockly.FieldDropdown(a),"OP");this.setInputsInline(!0);var b=this;this.setTooltip(function(){var a=b.getFieldValue("OP");return{AND:Blockly.Msg.LOGIC_OPERATION_TOOLTIP_AND,
OR:Blockly.Msg.LOGIC_OPERATION_TOOLTIP_OR}[a]})}};Blockly.Blocks.logic_negate={init:function(){this.jsonInit({message0:Blockly.Msg.LOGIC_NEGATE_TITLE,args0:[{type:"input_value",name:"BOOL",check:"Boolean"}],output:"Boolean",colour:Blockly.Blocks.logic.HUE,tooltip:Blockly.Msg.LOGIC_NEGATE_TOOLTIP,helpUrl:Blockly.Msg.LOGIC_NEGATE_HELPURL})}};
Blockly.Blocks.logic_boolean={init:function(){this.jsonInit({message0:"%1",args0:[{type:"field_dropdown",name:"BOOL",options:[[Blockly.Msg.LOGIC_BOOLEAN_TRUE,"TRUE"],[Blockly.Msg.LOGIC_BOOLEAN_FALSE,"FALSE"]]}],output:"Boolean",colour:Blockly.Blocks.logic.HUE,tooltip:Blockly.Msg.LOGIC_BOOLEAN_TOOLTIP,helpUrl:Blockly.Msg.LOGIC_BOOLEAN_HELPURL})}};
Blockly.Blocks.logic_null={init:function(){this.jsonInit({message0:Blockly.Msg.LOGIC_NULL,output:null,colour:Blockly.Blocks.logic.HUE,tooltip:Blockly.Msg.LOGIC_NULL_TOOLTIP,helpUrl:Blockly.Msg.LOGIC_NULL_HELPURL})}};
Blockly.Blocks.logic_ternary={init:function(){this.setHelpUrl(Blockly.Msg.LOGIC_TERNARY_HELPURL);this.setColour(Blockly.Blocks.logic.HUE);this.appendValueInput("IF").setCheck("Boolean").appendField(Blockly.Msg.LOGIC_TERNARY_CONDITION);this.appendValueInput("THEN").appendField(Blockly.Msg.LOGIC_TERNARY_IF_TRUE);this.appendValueInput("ELSE").appendField(Blockly.Msg.LOGIC_TERNARY_IF_FALSE);this.setOutput(!0);this.setTooltip(Blockly.Msg.LOGIC_TERNARY_TOOLTIP);this.prevParentConnection_=null},onchange:function(){var a=
this.getInputTargetBlock("THEN"),b=this.getInputTargetBlock("ELSE"),c=this.outputConnection.targetConnection;if((a||b)&&c)for(var d=0;2>d;d++){var e=1==d?a:b;e&&!e.outputConnection.checkType_(c)&&(c===this.prevParentConnection_?(this.setParent(null),c.sourceBlock_.bumpNeighbours_()):(e.setParent(null),e.bumpNeighbours_()))}this.prevParentConnection_=c}};Blockly.Blocks.variables={};Blockly.Blocks.variables.HUE=330;
Blockly.Blocks.variables_get={init:function(){this.setHelpUrl(Blockly.Msg.VARIABLES_GET_HELPURL);this.setColour(Blockly.Blocks.variables.HUE);this.appendDummyInput().appendField(new Blockly.FieldVariable(Blockly.Msg.VARIABLES_DEFAULT_NAME),"VAR");this.setOutput(!0);this.setTooltip(Blockly.Msg.VARIABLES_GET_TOOLTIP);this.contextMenuMsg_=Blockly.Msg.VARIABLES_GET_CREATE_SET},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(a,b){Blockly.Names.equals(a,this.getFieldValue("VAR"))&&
this.setFieldValue(b,"VAR")},contextMenuType_:"variables_set",customContextMenu:function(a){var b={enabled:!0},c=this.getFieldValue("VAR");b.text=this.contextMenuMsg_.replace("%1",c);c=goog.dom.createDom("field",null,c);c.setAttribute("name","VAR");c=goog.dom.createDom("block",null,c);c.setAttribute("type",this.contextMenuType_);b.callback=Blockly.ContextMenu.callbackFactory(this,c);a.push(b)}};
Blockly.Blocks.variables_set={init:function(){this.jsonInit({message0:Blockly.Msg.VARIABLES_SET,args0:[{type:"field_variable",name:"VAR",variable:Blockly.Msg.VARIABLES_DEFAULT_NAME},{type:"input_value",name:"VALUE"}],previousStatement:null,nextStatement:null,colour:Blockly.Blocks.variables.HUE,tooltip:Blockly.Msg.VARIABLES_SET_TOOLTIP,helpUrl:Blockly.Msg.VARIABLES_SET_HELPURL});this.contextMenuMsg_=Blockly.Msg.VARIABLES_SET_CREATE_GET},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(a,
b){Blockly.Names.equals(a,this.getFieldValue("VAR"))&&this.setFieldValue(b,"VAR")},contextMenuType_:"variables_get",customContextMenu:Blockly.Blocks.variables_get.customContextMenu};Blockly.Blocks.math={};Blockly.Blocks.math.HUE=230;Blockly.Blocks.math_number={init:function(){this.setHelpUrl(Blockly.Msg.MATH_NUMBER_HELPURL);this.setColour(Blockly.Blocks.math.HUE);this.appendDummyInput().appendField(new Blockly.FieldTextInput("0",Blockly.FieldTextInput.numberValidator),"NUM");this.setOutput(!0,"Number");var a=this;this.setTooltip(function(){var b=a.getParent();return b&&b.tooltip||Blockly.Msg.MATH_NUMBER_TOOLTIP})}};
Blockly.Blocks.math_arithmetic={init:function(){var a=[[Blockly.Msg.MATH_ADDITION_SYMBOL,"ADD"],[Blockly.Msg.MATH_SUBTRACTION_SYMBOL,"MINUS"],[Blockly.Msg.MATH_MULTIPLICATION_SYMBOL,"MULTIPLY"],[Blockly.Msg.MATH_DIVISION_SYMBOL,"DIVIDE"],[Blockly.Msg.MATH_POWER_SYMBOL,"POWER"]];this.setHelpUrl(Blockly.Msg.MATH_ARITHMETIC_HELPURL);this.setColour(Blockly.Blocks.math.HUE);this.setOutput(!0,"Number");this.appendValueInput("A").setCheck("Number");this.appendValueInput("B").setCheck("Number").appendField(new Blockly.FieldDropdown(a),
"OP");this.setInputsInline(!0);var b=this;this.setTooltip(function(){var a=b.getFieldValue("OP");return{ADD:Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_ADD,MINUS:Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_MINUS,MULTIPLY:Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_MULTIPLY,DIVIDE:Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_DIVIDE,POWER:Blockly.Msg.MATH_ARITHMETIC_TOOLTIP_POWER}[a]})}};
Blockly.Blocks.math_single={init:function(){var a=[[Blockly.Msg.MATH_SINGLE_OP_ROOT,"ROOT"],[Blockly.Msg.MATH_SINGLE_OP_ABSOLUTE,"ABS"],["-","NEG"],["ln","LN"],["log10","LOG10"],["e^","EXP"],["10^","POW10"]];this.setHelpUrl(Blockly.Msg.MATH_SINGLE_HELPURL);this.setColour(Blockly.Blocks.math.HUE);this.setOutput(!0,"Number");this.appendValueInput("NUM").setCheck("Number").appendField(new Blockly.FieldDropdown(a),"OP");var b=this;this.setTooltip(function(){var a=b.getFieldValue("OP");return{ROOT:Blockly.Msg.MATH_SINGLE_TOOLTIP_ROOT,
ABS:Blockly.Msg.MATH_SINGLE_TOOLTIP_ABS,NEG:Blockly.Msg.MATH_SINGLE_TOOLTIP_NEG,LN:Blockly.Msg.MATH_SINGLE_TOOLTIP_LN,LOG10:Blockly.Msg.MATH_SINGLE_TOOLTIP_LOG10,EXP:Blockly.Msg.MATH_SINGLE_TOOLTIP_EXP,POW10:Blockly.Msg.MATH_SINGLE_TOOLTIP_POW10}[a]})}};
Blockly.Blocks.math_trig={init:function(){var a=[[Blockly.Msg.MATH_TRIG_SIN,"SIN"],[Blockly.Msg.MATH_TRIG_COS,"COS"],[Blockly.Msg.MATH_TRIG_TAN,"TAN"],[Blockly.Msg.MATH_TRIG_ASIN,"ASIN"],[Blockly.Msg.MATH_TRIG_ACOS,"ACOS"],[Blockly.Msg.MATH_TRIG_ATAN,"ATAN"]];this.setHelpUrl(Blockly.Msg.MATH_TRIG_HELPURL);this.setColour(Blockly.Blocks.math.HUE);this.setOutput(!0,"Number");this.appendValueInput("NUM").setCheck("Number").appendField(new Blockly.FieldDropdown(a),"OP");var b=this;this.setTooltip(function(){var a=
b.getFieldValue("OP");return{SIN:Blockly.Msg.MATH_TRIG_TOOLTIP_SIN,COS:Blockly.Msg.MATH_TRIG_TOOLTIP_COS,TAN:Blockly.Msg.MATH_TRIG_TOOLTIP_TAN,ASIN:Blockly.Msg.MATH_TRIG_TOOLTIP_ASIN,ACOS:Blockly.Msg.MATH_TRIG_TOOLTIP_ACOS,ATAN:Blockly.Msg.MATH_TRIG_TOOLTIP_ATAN}[a]})}};
Blockly.Blocks.math_constant={init:function(){this.setHelpUrl(Blockly.Msg.MATH_CONSTANT_HELPURL);this.setColour(Blockly.Blocks.math.HUE);this.setOutput(!0,"Number");this.appendDummyInput().appendField(new Blockly.FieldDropdown([["\u03c0","PI"],["e","E"],["\u03c6","GOLDEN_RATIO"],["sqrt(2)","SQRT2"],["sqrt(\u00bd)","SQRT1_2"],["\u221e","INFINITY"]]),"CONSTANT");this.setTooltip(Blockly.Msg.MATH_CONSTANT_TOOLTIP)}};
Blockly.Blocks.math_number_property={init:function(){var a=[[Blockly.Msg.MATH_IS_EVEN,"EVEN"],[Blockly.Msg.MATH_IS_ODD,"ODD"],[Blockly.Msg.MATH_IS_PRIME,"PRIME"],[Blockly.Msg.MATH_IS_WHOLE,"WHOLE"],[Blockly.Msg.MATH_IS_POSITIVE,"POSITIVE"],[Blockly.Msg.MATH_IS_NEGATIVE,"NEGATIVE"],[Blockly.Msg.MATH_IS_DIVISIBLE_BY,"DIVISIBLE_BY"]];this.setColour(Blockly.Blocks.math.HUE);this.appendValueInput("NUMBER_TO_CHECK").setCheck("Number");a=new Blockly.FieldDropdown(a,function(a){this.sourceBlock_.updateShape_("DIVISIBLE_BY"==
a)});this.appendDummyInput().appendField(a,"PROPERTY");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setTooltip(Blockly.Msg.MATH_IS_TOOLTIP)},mutationToDom:function(){var a=document.createElement("mutation"),b="DIVISIBLE_BY"==this.getFieldValue("PROPERTY");a.setAttribute("divisor_input",b);return a},domToMutation:function(a){a="true"==a.getAttribute("divisor_input");this.updateShape_(a)},updateShape_:function(a){var b=this.getInput("DIVISOR");a?b||this.appendValueInput("DIVISOR").setCheck("Number"):
b&&this.removeInput("DIVISOR")}};
Blockly.Blocks.math_change={init:function(){this.jsonInit({message0:Blockly.Msg.MATH_CHANGE_TITLE,args0:[{type:"field_variable",name:"VAR",variable:Blockly.Msg.MATH_CHANGE_TITLE_ITEM},{type:"input_value",name:"DELTA",check:"Number"}],previousStatement:null,nextStatement:null,colour:Blockly.Blocks.math.HUE,helpUrl:Blockly.Msg.MATH_CHANGE_HELPURL});var a=this;this.setTooltip(function(){return Blockly.Msg.MATH_CHANGE_TOOLTIP.replace("%1",a.getFieldValue("VAR"))})},getVars:function(){return[this.getFieldValue("VAR")]},renameVar:function(a,
b){Blockly.Names.equals(a,this.getFieldValue("VAR"))&&this.setFieldValue(b,"VAR")}};
Blockly.Blocks.math_round={init:function(){var a=[[Blockly.Msg.MATH_ROUND_OPERATOR_ROUND,"ROUND"],[Blockly.Msg.MATH_ROUND_OPERATOR_ROUNDUP,"ROUNDUP"],[Blockly.Msg.MATH_ROUND_OPERATOR_ROUNDDOWN,"ROUNDDOWN"]];this.setHelpUrl(Blockly.Msg.MATH_ROUND_HELPURL);this.setColour(Blockly.Blocks.math.HUE);this.setOutput(!0,"Number");this.appendValueInput("NUM").setCheck("Number").appendField(new Blockly.FieldDropdown(a),"OP");this.setTooltip(Blockly.Msg.MATH_ROUND_TOOLTIP)}};
Blockly.Blocks.math_on_list={init:function(){var a=[[Blockly.Msg.MATH_ONLIST_OPERATOR_SUM,"SUM"],[Blockly.Msg.MATH_ONLIST_OPERATOR_MIN,"MIN"],[Blockly.Msg.MATH_ONLIST_OPERATOR_MAX,"MAX"],[Blockly.Msg.MATH_ONLIST_OPERATOR_AVERAGE,"AVERAGE"],[Blockly.Msg.MATH_ONLIST_OPERATOR_MEDIAN,"MEDIAN"],[Blockly.Msg.MATH_ONLIST_OPERATOR_MODE,"MODE"],[Blockly.Msg.MATH_ONLIST_OPERATOR_STD_DEV,"STD_DEV"],[Blockly.Msg.MATH_ONLIST_OPERATOR_RANDOM,"RANDOM"]],b=this;this.setHelpUrl(Blockly.Msg.MATH_ONLIST_HELPURL);this.setColour(Blockly.Blocks.math.HUE);
this.setOutput(!0,"Number");a=new Blockly.FieldDropdown(a,function(a){b.updateType_(a)});this.appendValueInput("LIST").setCheck("Array").appendField(a,"OP");this.setTooltip(function(){var a=b.getFieldValue("OP");return{SUM:Blockly.Msg.MATH_ONLIST_TOOLTIP_SUM,MIN:Blockly.Msg.MATH_ONLIST_TOOLTIP_MIN,MAX:Blockly.Msg.MATH_ONLIST_TOOLTIP_MAX,AVERAGE:Blockly.Msg.MATH_ONLIST_TOOLTIP_AVERAGE,MEDIAN:Blockly.Msg.MATH_ONLIST_TOOLTIP_MEDIAN,MODE:Blockly.Msg.MATH_ONLIST_TOOLTIP_MODE,STD_DEV:Blockly.Msg.MATH_ONLIST_TOOLTIP_STD_DEV,
RANDOM:Blockly.Msg.MATH_ONLIST_TOOLTIP_RANDOM}[a]})},updateType_:function(a){"MODE"==a?this.outputConnection.setCheck("Array"):this.outputConnection.setCheck("Number")},mutationToDom:function(){var a=document.createElement("mutation");a.setAttribute("op",this.getFieldValue("OP"));return a},domToMutation:function(a){this.updateType_(a.getAttribute("op"))}};
Blockly.Blocks.math_modulo={init:function(){this.jsonInit({message0:Blockly.Msg.MATH_MODULO_TITLE,args0:[{type:"input_value",name:"DIVIDEND",check:"Number"},{type:"input_value",name:"DIVISOR",check:"Number"}],inputsInline:!0,output:"Number",colour:Blockly.Blocks.math.HUE,tooltip:Blockly.Msg.MATH_MODULO_TOOLTIP,helpUrl:Blockly.Msg.MATH_MODULO_HELPURL})}};
Blockly.Blocks.math_constrain={init:function(){this.jsonInit({message0:Blockly.Msg.MATH_CONSTRAIN_TITLE,args0:[{type:"input_value",name:"VALUE",check:"Number"},{type:"input_value",name:"LOW",check:"Number"},{type:"input_value",name:"HIGH",check:"Number"}],inputsInline:!0,output:"Number",colour:Blockly.Blocks.math.HUE,tooltip:Blockly.Msg.MATH_CONSTRAIN_TOOLTIP,helpUrl:Blockly.Msg.MATH_CONSTRAIN_HELPURL})}};
Blockly.Blocks.math_random_int={init:function(){this.jsonInit({message0:Blockly.Msg.MATH_RANDOM_INT_TITLE,args0:[{type:"input_value",name:"FROM",check:"Number"},{type:"input_value",name:"TO",check:"Number"}],inputsInline:!0,output:"Number",colour:Blockly.Blocks.math.HUE,tooltip:Blockly.Msg.MATH_RANDOM_INT_TOOLTIP,helpUrl:Blockly.Msg.MATH_RANDOM_INT_HELPURL})}};
Blockly.Blocks.math_random_float={init:function(){this.setHelpUrl(Blockly.Msg.MATH_RANDOM_FLOAT_HELPURL);this.setColour(Blockly.Blocks.math.HUE);this.setOutput(!0,"Number");this.appendDummyInput().appendField(Blockly.Msg.MATH_RANDOM_FLOAT_TITLE_RANDOM);this.setTooltip(Blockly.Msg.MATH_RANDOM_FLOAT_TOOLTIP)}};Blockly.Blocks.tinkerforge={};
Blockly.Blocks.brick_dc_set_velocity={init:function(){this.appendDummyInput().appendField("Set Velocity to");this.appendValueInput("VELOCITY").setCheck("Number").appendField("Velocity");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);
this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.setVelocity")}};
Blockly.Blocks.brick_dc_get_velocity={init:function(){this.appendDummyInput().appendField("Get Velocity");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.getVelocity")}};
Blockly.Blocks.brick_dc_get_current_velocity={init:function(){this.appendDummyInput().appendField("Get Current Velocity");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.getCurrentVelocity")}};
Blockly.Blocks.brick_dc_set_acceleration={init:function(){this.appendDummyInput().appendField("Set Acceleration to");this.appendValueInput("ACCELERATION").setCheck("Number").appendField("Acceleration");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.setAcceleration")}};
Blockly.Blocks.brick_dc_get_acceleration={init:function(){this.appendDummyInput().appendField("Get Acceleration");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.getAcceleration")}};
Blockly.Blocks.brick_dc_set_pwm_frequency={init:function(){this.appendDummyInput().appendField("Set PWM Frequency to");this.appendValueInput("FREQUENCY").setCheck("Number").appendField("Frequency");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.setPWMFrequency")}};
Blockly.Blocks.brick_dc_get_pwm_frequency={init:function(){this.appendDummyInput().appendField("Get PWM Frequency");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.getPWMFrequency")}};
Blockly.Blocks.brick_dc_full_brake={init:function(){this.appendDummyInput().appendField("Full Brake");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.fullBrake")}};
Blockly.Blocks.brick_dc_get_stack_input_voltage={init:function(){this.appendDummyInput().appendField("Get Stack Input Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.getStackInputVoltage")}};
Blockly.Blocks.brick_dc_get_external_input_voltage={init:function(){this.appendDummyInput().appendField("Get External Input Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.getExternalInputVoltage")}};
Blockly.Blocks.brick_dc_get_current_consumption={init:function(){this.appendDummyInput().appendField("Get Current Consumption");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.getCurrentConsumption")}};
Blockly.Blocks.brick_dc_enable={init:function(){this.appendDummyInput().appendField("Enable");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.enable")}};
Blockly.Blocks.brick_dc_disable={init:function(){this.appendDummyInput().appendField("Disable");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.disable")}};
Blockly.Blocks.brick_dc_is_enabled={init:function(){this.appendDummyInput().appendField("Is Enabled");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.isEnabled")}};
Blockly.Blocks.brick_dc_set_drive_mode={init:function(){this.appendDummyInput().appendField("Set Drive Mode to");this.appendDummyInput().appendField("Mode").appendField(new Blockly.FieldDropdown([["Drive Brake","0"],["Drive Coast","1"]]),"MODE");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);
this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.setDriveMode")}};
Blockly.Blocks.brick_dc_get_drive_mode={init:function(){this.appendDummyInput().appendField("Get Drive Mode");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.getDriveMode")}};
Blockly.Blocks.brick_dc_enable_status_led={init:function(){this.appendDummyInput().appendField("Enable Status LED");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.enableStatusLED")}};
Blockly.Blocks.brick_dc_disable_status_led={init:function(){this.appendDummyInput().appendField("Disable Status LED");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.disableStatusLED")}};
Blockly.Blocks.brick_dc_is_status_led_enabled={init:function(){this.appendDummyInput().appendField("Is Status LED Enabled");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.isStatusLEDEnabled")}};
Blockly.Blocks.brick_dc_get_protocol1_bricklet_name={init:function(){this.appendDummyInput().appendField("Get Protocol1 Bricklet Name with");this.appendValueInput("PORT").setCheck("String").appendField("Port");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.getProtocol1BrickletName")}};
Blockly.Blocks.brick_dc_get_chip_temperature={init:function(){this.appendDummyInput().appendField("Get Chip Temperature");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.getChipTemperature")}};
Blockly.Blocks.brick_dc_reset={init:function(){this.appendDummyInput().appendField("Reset");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.reset")}};
Blockly.Blocks.brick_dc_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of DC Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/DC_Brick_JavaScript.html#BrickDC.getIdentity")}};
Blockly.Blocks.brick_imu_get_acceleration={init:function(){this.appendDummyInput().appendField("Get Acceleration");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.getAcceleration")}};
Blockly.Blocks.brick_imu_get_magnetic_field={init:function(){this.appendDummyInput().appendField("Get Magnetic Field");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.getMagneticField")}};
Blockly.Blocks.brick_imu_get_angular_velocity={init:function(){this.appendDummyInput().appendField("Get Angular Velocity");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.getAngularVelocity")}};
Blockly.Blocks.brick_imu_get_all_data={init:function(){this.appendDummyInput().appendField("Get All Data");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.getAllData")}};
Blockly.Blocks.brick_imu_get_orientation={init:function(){this.appendDummyInput().appendField("Get Orientation");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.getOrientation")}};
Blockly.Blocks.brick_imu_get_quaternion={init:function(){this.appendDummyInput().appendField("Get Quaternion");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.getQuaternion")}};
Blockly.Blocks.brick_imu_get_imu_temperature={init:function(){this.appendDummyInput().appendField("Get IMU Temperature");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.getIMUTemperature")}};
Blockly.Blocks.brick_imu_leds_on={init:function(){this.appendDummyInput().appendField("Leds On");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.ledsOn")}};
Blockly.Blocks.brick_imu_leds_off={init:function(){this.appendDummyInput().appendField("Leds Off");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.ledsOff")}};
Blockly.Blocks.brick_imu_are_leds_on={init:function(){this.appendDummyInput().appendField("Are Leds On");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.areLedsOn")}};
Blockly.Blocks.brick_imu_set_acceleration_range={init:function(){this.appendDummyInput().appendField("Set Acceleration Range to");this.appendValueInput("RANGE").setCheck("Number").appendField("Range");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.setAccelerationRange")}};
Blockly.Blocks.brick_imu_get_acceleration_range={init:function(){this.appendDummyInput().appendField("Get Acceleration Range");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.getAccelerationRange")}};
Blockly.Blocks.brick_imu_set_magnetometer_range={init:function(){this.appendDummyInput().appendField("Set Magnetometer Range to");this.appendValueInput("RANGE").setCheck("Number").appendField("Range");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.setMagnetometerRange")}};
Blockly.Blocks.brick_imu_get_magnetometer_range={init:function(){this.appendDummyInput().appendField("Get Magnetometer Range");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.getMagnetometerRange")}};
Blockly.Blocks.brick_imu_set_convergence_speed={init:function(){this.appendDummyInput().appendField("Set Convergence Speed to");this.appendValueInput("SPEED").setCheck("Number").appendField("Speed");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.setConvergenceSpeed")}};
Blockly.Blocks.brick_imu_get_convergence_speed={init:function(){this.appendDummyInput().appendField("Get Convergence Speed");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.getConvergenceSpeed")}};
Blockly.Blocks.brick_imu_set_calibration={init:function(){this.appendDummyInput().appendField("Set Calibration to");this.appendDummyInput().appendField("Typ").appendField(new Blockly.FieldDropdown([["Accelerometer Gain","0"],["Accelerometer Bias","1"],["Magnetometer Gain","2"],["Magnetometer Bias","3"],["Gyroscope Gain","4"],["Gyroscope Bias","5"]]),"TYP");this.appendValueInput("DATA").setCheck("Number").appendField("and Data");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.setCalibration")}};
Blockly.Blocks.brick_imu_get_calibration={init:function(){this.appendDummyInput().appendField("Get Calibration with");this.appendDummyInput().appendField("Typ").appendField(new Blockly.FieldDropdown([["Accelerometer Gain","0"],["Accelerometer Bias","1"],["Magnetometer Gain","2"],["Magnetometer Bias","3"],["Gyroscope Gain","4"],["Gyroscope Bias","5"]]),"TYP");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.getCalibration")}};
Blockly.Blocks.brick_imu_orientation_calculation_on={init:function(){this.appendDummyInput().appendField("Orientation Calculation On");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.orientationCalculationOn")}};
Blockly.Blocks.brick_imu_orientation_calculation_off={init:function(){this.appendDummyInput().appendField("Orientation Calculation Off");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.orientationCalculationOff")}};
Blockly.Blocks.brick_imu_is_orientation_calculation_on={init:function(){this.appendDummyInput().appendField("Is Orientation Calculation On");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.isOrientationCalculationOn")}};
Blockly.Blocks.brick_imu_enable_status_led={init:function(){this.appendDummyInput().appendField("Enable Status LED");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.enableStatusLED")}};
Blockly.Blocks.brick_imu_disable_status_led={init:function(){this.appendDummyInput().appendField("Disable Status LED");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.disableStatusLED")}};
Blockly.Blocks.brick_imu_is_status_led_enabled={init:function(){this.appendDummyInput().appendField("Is Status LED Enabled");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.isStatusLEDEnabled")}};
Blockly.Blocks.brick_imu_get_protocol1_bricklet_name={init:function(){this.appendDummyInput().appendField("Get Protocol1 Bricklet Name with");this.appendValueInput("PORT").setCheck("String").appendField("Port");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.getProtocol1BrickletName")}};
Blockly.Blocks.brick_imu_get_chip_temperature={init:function(){this.appendDummyInput().appendField("Get Chip Temperature");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.getChipTemperature")}};
Blockly.Blocks.brick_imu_reset={init:function(){this.appendDummyInput().appendField("Reset");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.reset")}};
Blockly.Blocks.brick_imu_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMU_Brick_JavaScript.html#BrickIMU.getIdentity")}};
Blockly.Blocks.brick_imu_v2_get_acceleration={init:function(){this.appendDummyInput().appendField("Get Acceleration");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.getAcceleration")}};
Blockly.Blocks.brick_imu_v2_get_magnetic_field={init:function(){this.appendDummyInput().appendField("Get Magnetic Field");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.getMagneticField")}};
Blockly.Blocks.brick_imu_v2_get_angular_velocity={init:function(){this.appendDummyInput().appendField("Get Angular Velocity");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.getAngularVelocity")}};
Blockly.Blocks.brick_imu_v2_get_temperature={init:function(){this.appendDummyInput().appendField("Get Temperature");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.getTemperature")}};
Blockly.Blocks.brick_imu_v2_get_orientation={init:function(){this.appendDummyInput().appendField("Get Orientation");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.getOrientation")}};
Blockly.Blocks.brick_imu_v2_get_linear_acceleration={init:function(){this.appendDummyInput().appendField("Get Linear Acceleration");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.getLinearAcceleration")}};
Blockly.Blocks.brick_imu_v2_get_gravity_vector={init:function(){this.appendDummyInput().appendField("Get Gravity Vector");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.getGravityVector")}};
Blockly.Blocks.brick_imu_v2_get_quaternion={init:function(){this.appendDummyInput().appendField("Get Quaternion");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.getQuaternion")}};
Blockly.Blocks.brick_imu_v2_get_all_data={init:function(){this.appendDummyInput().appendField("Get All Data");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.getAllData")}};
Blockly.Blocks.brick_imu_v2_leds_on={init:function(){this.appendDummyInput().appendField("Leds On");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.ledsOn")}};
Blockly.Blocks.brick_imu_v2_leds_off={init:function(){this.appendDummyInput().appendField("Leds Off");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.ledsOff")}};
Blockly.Blocks.brick_imu_v2_are_leds_on={init:function(){this.appendDummyInput().appendField("Are Leds On");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.areLedsOn")}};
Blockly.Blocks.brick_imu_v2_save_calibration={init:function(){this.appendDummyInput().appendField("Save Calibration");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.saveCalibration")}};
Blockly.Blocks.brick_imu_v2_enable_status_led={init:function(){this.appendDummyInput().appendField("Enable Status LED");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.enableStatusLED")}};
Blockly.Blocks.brick_imu_v2_disable_status_led={init:function(){this.appendDummyInput().appendField("Disable Status LED");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.disableStatusLED")}};
Blockly.Blocks.brick_imu_v2_is_status_led_enabled={init:function(){this.appendDummyInput().appendField("Is Status LED Enabled");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.isStatusLEDEnabled")}};
Blockly.Blocks.brick_imu_v2_get_protocol1_bricklet_name={init:function(){this.appendDummyInput().appendField("Get Protocol1 Bricklet Name with");this.appendValueInput("PORT").setCheck("String").appendField("Port");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.getProtocol1BrickletName")}};
Blockly.Blocks.brick_imu_v2_get_chip_temperature={init:function(){this.appendDummyInput().appendField("Get Chip Temperature");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.getChipTemperature")}};
Blockly.Blocks.brick_imu_v2_reset={init:function(){this.appendDummyInput().appendField("Reset");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.reset")}};
Blockly.Blocks.brick_imu_v2_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of IMU Brick 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/IMUV2_Brick_JavaScript.html#BrickIMUV2.getIdentity")}};
Blockly.Blocks.brick_master_get_stack_voltage={init:function(){this.appendDummyInput().appendField("Get Stack Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getStackVoltage")}};
Blockly.Blocks.brick_master_get_stack_current={init:function(){this.appendDummyInput().appendField("Get Stack Current");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getStackCurrent")}};
Blockly.Blocks.brick_master_set_extension_type={init:function(){this.appendDummyInput().appendField("Set Extension Type to");this.appendValueInput("EXTENSION").setCheck("Number").appendField("Extension");this.appendDummyInput().appendField("and Exttype").appendField(new Blockly.FieldDropdown([["Chibi","1"],["RS485","2"],["Wifi","3"],["Ethernet","4"],["Wifi2","5"]]),"EXTTYPE");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setExtensionType")}};
Blockly.Blocks.brick_master_get_extension_type={init:function(){this.appendDummyInput().appendField("Get Extension Type with");this.appendValueInput("EXTENSION").setCheck("Number").appendField("Extension");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getExtensionType")}};
Blockly.Blocks.brick_master_is_chibi_present={init:function(){this.appendDummyInput().appendField("Is Chibi Present");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.isChibiPresent")}};
Blockly.Blocks.brick_master_set_chibi_address={init:function(){this.appendDummyInput().appendField("Set Chibi Address to");this.appendValueInput("ADDRESS").setCheck("Number").appendField("Address");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setChibiAddress")}};
Blockly.Blocks.brick_master_get_chibi_address={init:function(){this.appendDummyInput().appendField("Get Chibi Address");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getChibiAddress")}};
Blockly.Blocks.brick_master_set_chibi_master_address={init:function(){this.appendDummyInput().appendField("Set Chibi Master Address to");this.appendValueInput("ADDRESS").setCheck("Number").appendField("Address");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setChibiMasterAddress")}};
Blockly.Blocks.brick_master_get_chibi_master_address={init:function(){this.appendDummyInput().appendField("Get Chibi Master Address");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getChibiMasterAddress")}};
Blockly.Blocks.brick_master_set_chibi_slave_address={init:function(){this.appendDummyInput().appendField("Set Chibi Slave Address to");this.appendValueInput("NUM").setCheck("Number").appendField("Num");this.appendValueInput("ADDRESS").setCheck("Number").appendField("and Address");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);
this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setChibiSlaveAddress")}};
Blockly.Blocks.brick_master_get_chibi_slave_address={init:function(){this.appendDummyInput().appendField("Get Chibi Slave Address with");this.appendValueInput("NUM").setCheck("Number").appendField("Num");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getChibiSlaveAddress")}};
Blockly.Blocks.brick_master_get_chibi_signal_strength={init:function(){this.appendDummyInput().appendField("Get Chibi Signal Strength");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getChibiSignalStrength")}};
Blockly.Blocks.brick_master_get_chibi_error_log={init:function(){this.appendDummyInput().appendField("Get Chibi Error Log");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getChibiErrorLog")}};
Blockly.Blocks.brick_master_set_chibi_frequency={init:function(){this.appendDummyInput().appendField("Set Chibi Frequency to");this.appendDummyInput().appendField("Frequency").appendField(new Blockly.FieldDropdown([["OQPSK 868 MHz","0"],["OQPSK 915 MHz","1"],["OQPSK 780 MHz","2"],["BPSK40 915 MHz","3"]]),"FREQUENCY");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setChibiFrequency")}};
Blockly.Blocks.brick_master_get_chibi_frequency={init:function(){this.appendDummyInput().appendField("Get Chibi Frequency");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getChibiFrequency")}};
Blockly.Blocks.brick_master_set_chibi_channel={init:function(){this.appendDummyInput().appendField("Set Chibi Channel to");this.appendValueInput("CHANNEL").setCheck("Number").appendField("Channel");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setChibiChannel")}};
Blockly.Blocks.brick_master_get_chibi_channel={init:function(){this.appendDummyInput().appendField("Get Chibi Channel");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getChibiChannel")}};
Blockly.Blocks.brick_master_is_rs485_present={init:function(){this.appendDummyInput().appendField("Is RS485 Present");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.isRS485Present")}};
Blockly.Blocks.brick_master_set_rs485_address={init:function(){this.appendDummyInput().appendField("Set RS485 Address to");this.appendValueInput("ADDRESS").setCheck("Number").appendField("Address");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setRS485Address")}};
Blockly.Blocks.brick_master_get_rs485_address={init:function(){this.appendDummyInput().appendField("Get RS485 Address");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getRS485Address")}};
Blockly.Blocks.brick_master_set_rs485_slave_address={init:function(){this.appendDummyInput().appendField("Set RS485 Slave Address to");this.appendValueInput("NUM").setCheck("Number").appendField("Num");this.appendValueInput("ADDRESS").setCheck("Number").appendField("and Address");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);
this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setRS485SlaveAddress")}};
Blockly.Blocks.brick_master_get_rs485_slave_address={init:function(){this.appendDummyInput().appendField("Get RS485 Slave Address with");this.appendValueInput("NUM").setCheck("Number").appendField("Num");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getRS485SlaveAddress")}};
Blockly.Blocks.brick_master_get_rs485_error_log={init:function(){this.appendDummyInput().appendField("Get RS485 Error Log");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getRS485ErrorLog")}};
Blockly.Blocks.brick_master_set_rs485_configuration={init:function(){this.appendDummyInput().appendField("Set RS485 Configuration to");this.appendValueInput("SPEED").setCheck("Number").appendField("Speed");this.appendDummyInput().appendField("Parity").appendField(new Blockly.FieldDropdown([["None","n"],["Even","e"],["Odd","o"]]),"PARITY");this.appendValueInput("STOPBITS").setCheck("Number").appendField("and Stopbits");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setRS485Configuration")}};
Blockly.Blocks.brick_master_get_rs485_configuration={init:function(){this.appendDummyInput().appendField("Get RS485 Configuration");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getRS485Configuration")}};
Blockly.Blocks.brick_master_is_wifi_present={init:function(){this.appendDummyInput().appendField("Is Wifi Present");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.isWifiPresent")}};
Blockly.Blocks.brick_master_set_wifi_configuration={init:function(){this.appendDummyInput().appendField("Set Wifi Configuration to");this.appendValueInput("SSID").setCheck("String").appendField("SSID");this.appendDummyInput().appendField("Connection").appendField(new Blockly.FieldDropdown([["DHCP","0"],["Static IP","1"],["Access Point DHCP","2"],["Access Point Static IP","3"],["Ad Hoc DHCP","4"],["Ad Hoc Static IP","5"]]),"CONNECTION");this.appendValueInput("IP").setCheck("Number").appendField("IP");
this.appendValueInput("SUBNET_MASK").setCheck("Number").appendField("Subnet Mask");this.appendValueInput("GATEWAY").setCheck("Number").appendField("Gateway");this.appendValueInput("PORT").setCheck("Number").appendField("and Port");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setWifiConfiguration")}};
Blockly.Blocks.brick_master_get_wifi_configuration={init:function(){this.appendDummyInput().appendField("Get Wifi Configuration");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getWifiConfiguration")}};
Blockly.Blocks.brick_master_set_wifi_encryption={init:function(){this.appendDummyInput().appendField("Set Wifi Encryption to");this.appendDummyInput().appendField("Encryption").appendField(new Blockly.FieldDropdown([["WPA WPA2","0"],["WPA Enterprise","1"],["WEP","2"],["No Encryption","3"]]),"ENCRYPTION");this.appendValueInput("KEY").setCheck("String").appendField("Key");this.appendValueInput("KEY_INDEX").setCheck("Number").appendField("Key Index");this.appendDummyInput().appendField("EAP Options").appendField(new Blockly.FieldDropdown([["Outer Auth EAP FAST",
"0"],["Outer Auth EAP TLS","1"],["Outer Auth EAP TTLS","2"],["Outer Auth EAP PEAP","3"],["Inner Auth EAP MSCHAP","0"],["Inner Auth EAP GTC","4"],["Cert Type CA Cert","0"],["Cert Type Client Cert","8"],["Cert Type Private Key","16"]]),"EAP_OPTIONS");this.appendValueInput("CA_CERTIFICATE_LENGTH").setCheck("Number").appendField("CA Certificate Length");this.appendValueInput("CLIENT_CERTIFICATE_LENGTH").setCheck("Number").appendField("Client Certificate Length");this.appendValueInput("PRIVATE_KEY_LENGTH").setCheck("Number").appendField("and Private Key Length");
this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setWifiEncryption")}};
Blockly.Blocks.brick_master_get_wifi_encryption={init:function(){this.appendDummyInput().appendField("Get Wifi Encryption");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getWifiEncryption")}};
Blockly.Blocks.brick_master_get_wifi_status={init:function(){this.appendDummyInput().appendField("Get Wifi Status");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getWifiStatus")}};
Blockly.Blocks.brick_master_refresh_wifi_status={init:function(){this.appendDummyInput().appendField("Refresh Wifi Status");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.refreshWifiStatus")}};
Blockly.Blocks.brick_master_set_wifi_certificate={init:function(){this.appendDummyInput().appendField("Set Wifi Certificate to");this.appendValueInput("INDEX").setCheck("Number").appendField("Index");this.appendValueInput("DATA").setCheck("Number").appendField("Data");this.appendValueInput("DATA_LENGTH").setCheck("Number").appendField("and Data Length");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setWifiCertificate")}};
Blockly.Blocks.brick_master_get_wifi_certificate={init:function(){this.appendDummyInput().appendField("Get Wifi Certificate with");this.appendValueInput("INDEX").setCheck("Number").appendField("Index");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getWifiCertificate")}};
Blockly.Blocks.brick_master_set_wifi_power_mode={init:function(){this.appendDummyInput().appendField("Set Wifi Power Mode to");this.appendDummyInput().appendField("Mode").appendField(new Blockly.FieldDropdown([["Full Speed","0"],["Low Power","1"]]),"MODE");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);
this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setWifiPowerMode")}};
Blockly.Blocks.brick_master_get_wifi_power_mode={init:function(){this.appendDummyInput().appendField("Get Wifi Power Mode");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getWifiPowerMode")}};
Blockly.Blocks.brick_master_get_wifi_buffer_info={init:function(){this.appendDummyInput().appendField("Get Wifi Buffer Info");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getWifiBufferInfo")}};
Blockly.Blocks.brick_master_set_wifi_regulatory_domain={init:function(){this.appendDummyInput().appendField("Set Wifi Regulatory Domain to");this.appendDummyInput().appendField("Domain").appendField(new Blockly.FieldDropdown([["Channel 1To11","0"],["Channel 1To13","1"],["Channel 1To14","2"]]),"DOMAIN");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setWifiRegulatoryDomain")}};
Blockly.Blocks.brick_master_get_wifi_regulatory_domain={init:function(){this.appendDummyInput().appendField("Get Wifi Regulatory Domain");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getWifiRegulatoryDomain")}};
Blockly.Blocks.brick_master_get_usb_voltage={init:function(){this.appendDummyInput().appendField("Get USB Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getUSBVoltage")}};
Blockly.Blocks.brick_master_set_long_wifi_key={init:function(){this.appendDummyInput().appendField("Set Long Wifi Key to");this.appendValueInput("KEY").setCheck("String").appendField("Key");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setLongWifiKey")}};
Blockly.Blocks.brick_master_get_long_wifi_key={init:function(){this.appendDummyInput().appendField("Get Long Wifi Key");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"String");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getLongWifiKey")}};
Blockly.Blocks.brick_master_set_wifi_hostname={init:function(){this.appendDummyInput().appendField("Set Wifi Hostname to");this.appendValueInput("HOSTNAME").setCheck("String").appendField("Hostname");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setWifiHostname")}};
Blockly.Blocks.brick_master_get_wifi_hostname={init:function(){this.appendDummyInput().appendField("Get Wifi Hostname");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"String");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getWifiHostname")}};
Blockly.Blocks.brick_master_is_ethernet_present={init:function(){this.appendDummyInput().appendField("Is Ethernet Present");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.isEthernetPresent")}};
Blockly.Blocks.brick_master_set_ethernet_configuration={init:function(){this.appendDummyInput().appendField("Set Ethernet Configuration to");this.appendDummyInput().appendField("Connection").appendField(new Blockly.FieldDropdown([["DHCP","0"],["Static IP","1"]]),"CONNECTION");this.appendValueInput("IP").setCheck("Number").appendField("IP");this.appendValueInput("SUBNET_MASK").setCheck("Number").appendField("Subnet Mask");this.appendValueInput("GATEWAY").setCheck("Number").appendField("Gateway");this.appendValueInput("PORT").setCheck("Number").appendField("and Port");
this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setEthernetConfiguration")}};
Blockly.Blocks.brick_master_get_ethernet_configuration={init:function(){this.appendDummyInput().appendField("Get Ethernet Configuration");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getEthernetConfiguration")}};
Blockly.Blocks.brick_master_get_ethernet_status={init:function(){this.appendDummyInput().appendField("Get Ethernet Status");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getEthernetStatus")}};
Blockly.Blocks.brick_master_set_ethernet_hostname={init:function(){this.appendDummyInput().appendField("Set Ethernet Hostname to");this.appendValueInput("HOSTNAME").setCheck("String").appendField("Hostname");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setEthernetHostname")}};
Blockly.Blocks.brick_master_set_ethernet_mac_address={init:function(){this.appendDummyInput().appendField("Set Ethernet MAC Address to");this.appendValueInput("MAC_ADDRESS").setCheck("Number").appendField("MAC Address");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setEthernetMACAddress")}};
Blockly.Blocks.brick_master_set_ethernet_websocket_configuration={init:function(){this.appendDummyInput().appendField("Set Ethernet Websocket Configuration to");this.appendValueInput("SOCKETS").setCheck("Number").appendField("Sockets");this.appendValueInput("PORT").setCheck("Number").appendField("and Port");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setEthernetWebsocketConfiguration")}};
Blockly.Blocks.brick_master_get_ethernet_websocket_configuration={init:function(){this.appendDummyInput().appendField("Get Ethernet Websocket Configuration");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);
this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getEthernetWebsocketConfiguration")}};
Blockly.Blocks.brick_master_set_ethernet_authentication_secret={init:function(){this.appendDummyInput().appendField("Set Ethernet Authentication Secret to");this.appendValueInput("SECRET").setCheck("String").appendField("Secret");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setEthernetAuthenticationSecret")}};
Blockly.Blocks.brick_master_get_ethernet_authentication_secret={init:function(){this.appendDummyInput().appendField("Get Ethernet Authentication Secret");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"String");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getEthernetAuthenticationSecret")}};
Blockly.Blocks.brick_master_set_wifi_authentication_secret={init:function(){this.appendDummyInput().appendField("Set Wifi Authentication Secret to");this.appendValueInput("SECRET").setCheck("String").appendField("Secret");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setWifiAuthenticationSecret")}};
Blockly.Blocks.brick_master_get_wifi_authentication_secret={init:function(){this.appendDummyInput().appendField("Get Wifi Authentication Secret");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"String");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getWifiAuthenticationSecret")}};
Blockly.Blocks.brick_master_get_connection_type={init:function(){this.appendDummyInput().appendField("Get Connection Type");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getConnectionType")}};
Blockly.Blocks.brick_master_is_wifi2_present={init:function(){this.appendDummyInput().appendField("Is Wifi2 Present");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.isWifi2Present")}};
Blockly.Blocks.brick_master_start_wifi2_bootloader={init:function(){this.appendDummyInput().appendField("Start Wifi2 Bootloader");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.startWifi2Bootloader")}};
Blockly.Blocks.brick_master_write_wifi2_flash={init:function(){this.appendDummyInput().appendField("Write Wifi2 Flash with");this.appendValueInput("DATA").setCheck("Number").appendField("Data");this.appendValueInput("LENGTH").setCheck("Number").appendField("and Length");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);
this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.writeWifi2Flash")}};
Blockly.Blocks.brick_master_read_wifi2_flash={init:function(){this.appendDummyInput().appendField("Read Wifi2 Flash with");this.appendValueInput("LENGTH_IN").setCheck("Number").appendField("Length In");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.readWifi2Flash")}};
Blockly.Blocks.brick_master_set_wifi2_authentication_secret={init:function(){this.appendDummyInput().appendField("Set Wifi2 Authentication Secret to");this.appendValueInput("SECRET").setCheck("String").appendField("Secret");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setWifi2AuthenticationSecret")}};
Blockly.Blocks.brick_master_get_wifi2_authentication_secret={init:function(){this.appendDummyInput().appendField("Get Wifi2 Authentication Secret");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"String");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getWifi2AuthenticationSecret")}};
Blockly.Blocks.brick_master_set_wifi2_configuration={init:function(){this.appendDummyInput().appendField("Set Wifi2 Configuration to");this.appendValueInput("PORT").setCheck("Number").appendField("Port");this.appendValueInput("WEBSOCKET_PORT").setCheck("Number").appendField("Websocket Port");this.appendValueInput("WEBSITE_PORT").setCheck("Number").appendField("Website Port");this.appendValueInput("PHY_MODE").setCheck("Number").appendField("PHY Mode");this.appendValueInput("SLEEP_MODE").setCheck("Number").appendField("Sleep Mode");
this.appendValueInput("WEBSITE").setCheck("Number").appendField("and Website");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setWifi2Configuration")}};
Blockly.Blocks.brick_master_get_wifi2_configuration={init:function(){this.appendDummyInput().appendField("Get Wifi2 Configuration");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getWifi2Configuration")}};
Blockly.Blocks.brick_master_get_wifi2_status={init:function(){this.appendDummyInput().appendField("Get Wifi2 Status");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getWifi2Status")}};
Blockly.Blocks.brick_master_set_wifi2_client_configuration={init:function(){this.appendDummyInput().appendField("Set Wifi2 Client Configuration to");this.appendDummyInput().appendField("Enable").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"ENABLE");this.appendValueInput("SSID").setCheck("String").appendField("SSID");this.appendValueInput("IP").setCheck("Number").appendField("IP");this.appendValueInput("SUBNET_MASK").setCheck("Number").appendField("Subnet Mask");this.appendValueInput("GATEWAY").setCheck("Number").appendField("Gateway");
this.appendValueInput("MAC_ADDRESS").setCheck("Number").appendField("MAC Address");this.appendValueInput("BSSID").setCheck("Number").appendField("and BSSID");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setWifi2ClientConfiguration")}};
Blockly.Blocks.brick_master_get_wifi2_client_configuration={init:function(){this.appendDummyInput().appendField("Get Wifi2 Client Configuration");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getWifi2ClientConfiguration")}};
Blockly.Blocks.brick_master_set_wifi2_client_hostname={init:function(){this.appendDummyInput().appendField("Set Wifi2 Client Hostname to");this.appendValueInput("HOSTNAME").setCheck("String").appendField("Hostname");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setWifi2ClientHostname")}};
Blockly.Blocks.brick_master_get_wifi2_client_hostname={init:function(){this.appendDummyInput().appendField("Get Wifi2 Client Hostname");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"String");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getWifi2ClientHostname")}};
Blockly.Blocks.brick_master_set_wifi2_client_password={init:function(){this.appendDummyInput().appendField("Set Wifi2 Client Password to");this.appendValueInput("PASSWORD").setCheck("String").appendField("Password");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setWifi2ClientPassword")}};
Blockly.Blocks.brick_master_get_wifi2_client_password={init:function(){this.appendDummyInput().appendField("Get Wifi2 Client Password");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"String");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getWifi2ClientPassword")}};
Blockly.Blocks.brick_master_set_wifi2_ap_configuration={init:function(){this.appendDummyInput().appendField("Set Wifi2 AP Configuration to");this.appendDummyInput().appendField("Enable").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"ENABLE");this.appendValueInput("SSID").setCheck("String").appendField("SSID");this.appendValueInput("IP").setCheck("Number").appendField("IP");this.appendValueInput("SUBNET_MASK").setCheck("Number").appendField("Subnet Mask");this.appendValueInput("GATEWAY").setCheck("Number").appendField("Gateway");
this.appendValueInput("AUTH").setCheck("Number").appendField("Auth");this.appendDummyInput().appendField("Hidden").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"HIDDEN");this.appendValueInput("CHANNEL").setCheck("Number").appendField("Channel");this.appendValueInput("MAC_ADDRESS").setCheck("Number").appendField("and MAC Address");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setWifi2APConfiguration")}};
Blockly.Blocks.brick_master_get_wifi2_ap_configuration={init:function(){this.appendDummyInput().appendField("Get Wifi2 AP Configuration");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getWifi2APConfiguration")}};
Blockly.Blocks.brick_master_set_wifi2_ap_password={init:function(){this.appendDummyInput().appendField("Set Wifi2 AP Password to");this.appendValueInput("PASSWORD").setCheck("String").appendField("Password");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.setWifi2APPassword")}};
Blockly.Blocks.brick_master_get_wifi2_ap_password={init:function(){this.appendDummyInput().appendField("Get Wifi2 AP Password");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"String");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getWifi2APPassword")}};
Blockly.Blocks.brick_master_save_wifi2_configuration={init:function(){this.appendDummyInput().appendField("Save Wifi2 Configuration");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.saveWifi2Configuration")}};
Blockly.Blocks.brick_master_get_wifi2_firmware_version={init:function(){this.appendDummyInput().appendField("Get Wifi2 Firmware Version");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getWifi2FirmwareVersion")}};
Blockly.Blocks.brick_master_enable_wifi2_status_led={init:function(){this.appendDummyInput().appendField("Enable Wifi2 Status LED");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.enableWifi2StatusLED")}};
Blockly.Blocks.brick_master_disable_wifi2_status_led={init:function(){this.appendDummyInput().appendField("Disable Wifi2 Status LED");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.disableWifi2StatusLED")}};
Blockly.Blocks.brick_master_is_wifi2_status_led_enabled={init:function(){this.appendDummyInput().appendField("Is Wifi2 Status LED Enabled");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.isWifi2StatusLEDEnabled")}};
Blockly.Blocks.brick_master_enable_status_led={init:function(){this.appendDummyInput().appendField("Enable Status LED");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.enableStatusLED")}};
Blockly.Blocks.brick_master_disable_status_led={init:function(){this.appendDummyInput().appendField("Disable Status LED");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.disableStatusLED")}};
Blockly.Blocks.brick_master_is_status_led_enabled={init:function(){this.appendDummyInput().appendField("Is Status LED Enabled");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.isStatusLEDEnabled")}};
Blockly.Blocks.brick_master_get_protocol1_bricklet_name={init:function(){this.appendDummyInput().appendField("Get Protocol1 Bricklet Name with");this.appendValueInput("PORT").setCheck("String").appendField("Port");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getProtocol1BrickletName")}};
Blockly.Blocks.brick_master_get_chip_temperature={init:function(){this.appendDummyInput().appendField("Get Chip Temperature");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getChipTemperature")}};
Blockly.Blocks.brick_master_reset={init:function(){this.appendDummyInput().appendField("Reset");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.reset")}};
Blockly.Blocks.brick_master_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Master Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Master_Brick_JavaScript.html#BrickMaster.getIdentity")}};
Blockly.Blocks.brick_servo_enable={init:function(){this.appendDummyInput().appendField("Enable to");this.appendValueInput("SERVO_NUM").setCheck("Number").appendField("Servo Num");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);
this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.enable")}};
Blockly.Blocks.brick_servo_disable={init:function(){this.appendDummyInput().appendField("Disable to");this.appendValueInput("SERVO_NUM").setCheck("Number").appendField("Servo Num");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);
this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.disable")}};
Blockly.Blocks.brick_servo_is_enabled={init:function(){this.appendDummyInput().appendField("Is Enabled with");this.appendValueInput("SERVO_NUM").setCheck("Number").appendField("Servo Num");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.isEnabled")}};
Blockly.Blocks.brick_servo_set_position={init:function(){this.appendDummyInput().appendField("Set Position to");this.appendValueInput("SERVO_NUM").setCheck("Number").appendField("Servo Num");this.appendValueInput("POSITION").setCheck("Number").appendField("and Position");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);
this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.setPosition")}};
Blockly.Blocks.brick_servo_get_position={init:function(){this.appendDummyInput().appendField("Get Position with");this.appendValueInput("SERVO_NUM").setCheck("Number").appendField("Servo Num");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.getPosition")}};
Blockly.Blocks.brick_servo_get_current_position={init:function(){this.appendDummyInput().appendField("Get Current Position with");this.appendValueInput("SERVO_NUM").setCheck("Number").appendField("Servo Num");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.getCurrentPosition")}};
Blockly.Blocks.brick_servo_set_velocity={init:function(){this.appendDummyInput().appendField("Set Velocity to");this.appendValueInput("SERVO_NUM").setCheck("Number").appendField("Servo Num");this.appendValueInput("VELOCITY").setCheck("Number").appendField("and Velocity");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);
this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.setVelocity")}};
Blockly.Blocks.brick_servo_get_velocity={init:function(){this.appendDummyInput().appendField("Get Velocity with");this.appendValueInput("SERVO_NUM").setCheck("Number").appendField("Servo Num");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.getVelocity")}};
Blockly.Blocks.brick_servo_get_current_velocity={init:function(){this.appendDummyInput().appendField("Get Current Velocity with");this.appendValueInput("SERVO_NUM").setCheck("Number").appendField("Servo Num");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.getCurrentVelocity")}};
Blockly.Blocks.brick_servo_set_acceleration={init:function(){this.appendDummyInput().appendField("Set Acceleration to");this.appendValueInput("SERVO_NUM").setCheck("Number").appendField("Servo Num");this.appendValueInput("ACCELERATION").setCheck("Number").appendField("and Acceleration");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.setAcceleration")}};
Blockly.Blocks.brick_servo_get_acceleration={init:function(){this.appendDummyInput().appendField("Get Acceleration with");this.appendValueInput("SERVO_NUM").setCheck("Number").appendField("Servo Num");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.getAcceleration")}};
Blockly.Blocks.brick_servo_set_output_voltage={init:function(){this.appendDummyInput().appendField("Set Output Voltage to");this.appendValueInput("VOLTAGE").setCheck("Number").appendField("Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.setOutputVoltage")}};
Blockly.Blocks.brick_servo_get_output_voltage={init:function(){this.appendDummyInput().appendField("Get Output Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.getOutputVoltage")}};
Blockly.Blocks.brick_servo_set_pulse_width={init:function(){this.appendDummyInput().appendField("Set Pulse Width to");this.appendValueInput("SERVO_NUM").setCheck("Number").appendField("Servo Num");this.appendValueInput("MIN").setCheck("Number").appendField("Min");this.appendValueInput("MAX").setCheck("Number").appendField("and Max");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.setPulseWidth")}};
Blockly.Blocks.brick_servo_get_pulse_width={init:function(){this.appendDummyInput().appendField("Get Pulse Width with");this.appendValueInput("SERVO_NUM").setCheck("Number").appendField("Servo Num");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.getPulseWidth")}};
Blockly.Blocks.brick_servo_set_degree={init:function(){this.appendDummyInput().appendField("Set Degree to");this.appendValueInput("SERVO_NUM").setCheck("Number").appendField("Servo Num");this.appendValueInput("MIN").setCheck("Number").appendField("Min");this.appendValueInput("MAX").setCheck("Number").appendField("and Max");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.setDegree")}};
Blockly.Blocks.brick_servo_get_degree={init:function(){this.appendDummyInput().appendField("Get Degree with");this.appendValueInput("SERVO_NUM").setCheck("Number").appendField("Servo Num");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.getDegree")}};
Blockly.Blocks.brick_servo_set_period={init:function(){this.appendDummyInput().appendField("Set Period to");this.appendValueInput("SERVO_NUM").setCheck("Number").appendField("Servo Num");this.appendValueInput("PERIOD").setCheck("Number").appendField("and Period");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);
this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.setPeriod")}};
Blockly.Blocks.brick_servo_get_period={init:function(){this.appendDummyInput().appendField("Get Period with");this.appendValueInput("SERVO_NUM").setCheck("Number").appendField("Servo Num");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.getPeriod")}};
Blockly.Blocks.brick_servo_get_servo_current={init:function(){this.appendDummyInput().appendField("Get Servo Current with");this.appendValueInput("SERVO_NUM").setCheck("Number").appendField("Servo Num");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.getServoCurrent")}};
Blockly.Blocks.brick_servo_get_overall_current={init:function(){this.appendDummyInput().appendField("Get Overall Current");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.getOverallCurrent")}};
Blockly.Blocks.brick_servo_get_stack_input_voltage={init:function(){this.appendDummyInput().appendField("Get Stack Input Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.getStackInputVoltage")}};
Blockly.Blocks.brick_servo_get_external_input_voltage={init:function(){this.appendDummyInput().appendField("Get External Input Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.getExternalInputVoltage")}};
Blockly.Blocks.brick_servo_enable_status_led={init:function(){this.appendDummyInput().appendField("Enable Status LED");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.enableStatusLED")}};
Blockly.Blocks.brick_servo_disable_status_led={init:function(){this.appendDummyInput().appendField("Disable Status LED");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.disableStatusLED")}};
Blockly.Blocks.brick_servo_is_status_led_enabled={init:function(){this.appendDummyInput().appendField("Is Status LED Enabled");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.isStatusLEDEnabled")}};
Blockly.Blocks.brick_servo_get_protocol1_bricklet_name={init:function(){this.appendDummyInput().appendField("Get Protocol1 Bricklet Name with");this.appendValueInput("PORT").setCheck("String").appendField("Port");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.getProtocol1BrickletName")}};
Blockly.Blocks.brick_servo_get_chip_temperature={init:function(){this.appendDummyInput().appendField("Get Chip Temperature");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.getChipTemperature")}};
Blockly.Blocks.brick_servo_reset={init:function(){this.appendDummyInput().appendField("Reset");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.reset")}};
Blockly.Blocks.brick_servo_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Servo Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Servo_Brick_JavaScript.html#BrickServo.getIdentity")}};
Blockly.Blocks.brick_stepper_set_max_velocity={init:function(){this.appendDummyInput().appendField("Set Max Velocity to");this.appendValueInput("VELOCITY").setCheck("Number").appendField("Velocity");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.setMaxVelocity")}};
Blockly.Blocks.brick_stepper_get_max_velocity={init:function(){this.appendDummyInput().appendField("Get Max Velocity");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.getMaxVelocity")}};
Blockly.Blocks.brick_stepper_get_current_velocity={init:function(){this.appendDummyInput().appendField("Get Current Velocity");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.getCurrentVelocity")}};
Blockly.Blocks.brick_stepper_set_speed_ramping={init:function(){this.appendDummyInput().appendField("Set Speed Ramping to");this.appendValueInput("ACCELERATION").setCheck("Number").appendField("Acceleration");this.appendValueInput("DEACCELERATION").setCheck("Number").appendField("and Deacceleration");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.setSpeedRamping")}};
Blockly.Blocks.brick_stepper_get_speed_ramping={init:function(){this.appendDummyInput().appendField("Get Speed Ramping");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.getSpeedRamping")}};
Blockly.Blocks.brick_stepper_full_brake={init:function(){this.appendDummyInput().appendField("Full Brake");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.fullBrake")}};
Blockly.Blocks.brick_stepper_set_current_position={init:function(){this.appendDummyInput().appendField("Set Current Position to");this.appendValueInput("POSITION").setCheck("Number").appendField("Position");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.setCurrentPosition")}};
Blockly.Blocks.brick_stepper_get_current_position={init:function(){this.appendDummyInput().appendField("Get Current Position");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.getCurrentPosition")}};
Blockly.Blocks.brick_stepper_set_target_position={init:function(){this.appendDummyInput().appendField("Set Target Position to");this.appendValueInput("POSITION").setCheck("Number").appendField("Position");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.setTargetPosition")}};
Blockly.Blocks.brick_stepper_get_target_position={init:function(){this.appendDummyInput().appendField("Get Target Position");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.getTargetPosition")}};
Blockly.Blocks.brick_stepper_set_steps={init:function(){this.appendDummyInput().appendField("Set Steps to");this.appendValueInput("STEPS").setCheck("Number").appendField("Steps");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);
this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.setSteps")}};
Blockly.Blocks.brick_stepper_get_steps={init:function(){this.appendDummyInput().appendField("Get Steps");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.getSteps")}};
Blockly.Blocks.brick_stepper_get_remaining_steps={init:function(){this.appendDummyInput().appendField("Get Remaining Steps");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.getRemainingSteps")}};
Blockly.Blocks.brick_stepper_set_step_mode={init:function(){this.appendDummyInput().appendField("Set Step Mode to");this.appendDummyInput().appendField("Mode").appendField(new Blockly.FieldDropdown([["Full Step","1"],["Half Step","2"],["Quarter Step","4"],["Eighth Step","8"]]),"MODE");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.setStepMode")}};
Blockly.Blocks.brick_stepper_get_step_mode={init:function(){this.appendDummyInput().appendField("Get Step Mode");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.getStepMode")}};
Blockly.Blocks.brick_stepper_drive_forward={init:function(){this.appendDummyInput().appendField("Drive Forward");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.driveForward")}};
Blockly.Blocks.brick_stepper_drive_backward={init:function(){this.appendDummyInput().appendField("Drive Backward");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.driveBackward")}};
Blockly.Blocks.brick_stepper_stop={init:function(){this.appendDummyInput().appendField("Stop");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.stop")}};
Blockly.Blocks.brick_stepper_get_stack_input_voltage={init:function(){this.appendDummyInput().appendField("Get Stack Input Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.getStackInputVoltage")}};
Blockly.Blocks.brick_stepper_get_external_input_voltage={init:function(){this.appendDummyInput().appendField("Get External Input Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.getExternalInputVoltage")}};
Blockly.Blocks.brick_stepper_get_current_consumption={init:function(){this.appendDummyInput().appendField("Get Current Consumption");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.getCurrentConsumption")}};
Blockly.Blocks.brick_stepper_set_motor_current={init:function(){this.appendDummyInput().appendField("Set Motor Current to");this.appendValueInput("CURRENT").setCheck("Number").appendField("Current");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.setMotorCurrent")}};
Blockly.Blocks.brick_stepper_get_motor_current={init:function(){this.appendDummyInput().appendField("Get Motor Current");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.getMotorCurrent")}};
Blockly.Blocks.brick_stepper_enable={init:function(){this.appendDummyInput().appendField("Enable");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.enable")}};
Blockly.Blocks.brick_stepper_disable={init:function(){this.appendDummyInput().appendField("Disable");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.disable")}};
Blockly.Blocks.brick_stepper_is_enabled={init:function(){this.appendDummyInput().appendField("Is Enabled");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.isEnabled")}};
Blockly.Blocks.brick_stepper_set_decay={init:function(){this.appendDummyInput().appendField("Set Decay to");this.appendValueInput("DECAY").setCheck("Number").appendField("Decay");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);
this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.setDecay")}};
Blockly.Blocks.brick_stepper_get_decay={init:function(){this.appendDummyInput().appendField("Get Decay");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.getDecay")}};
Blockly.Blocks.brick_stepper_set_sync_rect={init:function(){this.appendDummyInput().appendField("Set Sync Rect to");this.appendDummyInput().appendField("Sync Rect").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"SYNC_RECT");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);
this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.setSyncRect")}};
Blockly.Blocks.brick_stepper_is_sync_rect={init:function(){this.appendDummyInput().appendField("Is Sync Rect");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.isSyncRect")}};
Blockly.Blocks.brick_stepper_set_time_base={init:function(){this.appendDummyInput().appendField("Set Time Base to");this.appendValueInput("TIME_BASE").setCheck("Number").appendField("Time Base");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.setTimeBase")}};
Blockly.Blocks.brick_stepper_get_time_base={init:function(){this.appendDummyInput().appendField("Get Time Base");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.getTimeBase")}};
Blockly.Blocks.brick_stepper_get_all_data={init:function(){this.appendDummyInput().appendField("Get All Data");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.getAllData")}};
Blockly.Blocks.brick_stepper_enable_status_led={init:function(){this.appendDummyInput().appendField("Enable Status LED");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.enableStatusLED")}};
Blockly.Blocks.brick_stepper_disable_status_led={init:function(){this.appendDummyInput().appendField("Disable Status LED");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.disableStatusLED")}};
Blockly.Blocks.brick_stepper_is_status_led_enabled={init:function(){this.appendDummyInput().appendField("Is Status LED Enabled");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.isStatusLEDEnabled")}};
Blockly.Blocks.brick_stepper_get_protocol1_bricklet_name={init:function(){this.appendDummyInput().appendField("Get Protocol1 Bricklet Name with");this.appendValueInput("PORT").setCheck("String").appendField("Port");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.getProtocol1BrickletName")}};
Blockly.Blocks.brick_stepper_get_chip_temperature={init:function(){this.appendDummyInput().appendField("Get Chip Temperature");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.getChipTemperature")}};
Blockly.Blocks.brick_stepper_reset={init:function(){this.appendDummyInput().appendField("Reset");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.reset")}};
Blockly.Blocks.brick_stepper_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Stepper Brick");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(195);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricks/Stepper_Brick_JavaScript.html#BrickStepper.getIdentity")}};
Blockly.Blocks.bricklet_accelerometer_get_acceleration={init:function(){this.appendDummyInput().appendField("Get Acceleration");this.appendValueInput("_UID").setCheck("String").appendField("of Accelerometer Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Accelerometer_Bricklet_JavaScript.html#BrickletAccelerometer.getAcceleration")}};
Blockly.Blocks.bricklet_accelerometer_get_temperature={init:function(){this.appendDummyInput().appendField("Get Temperature");this.appendValueInput("_UID").setCheck("String").appendField("of Accelerometer Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Accelerometer_Bricklet_JavaScript.html#BrickletAccelerometer.getTemperature")}};
Blockly.Blocks.bricklet_accelerometer_set_configuration={init:function(){this.appendDummyInput().appendField("Set Configuration to");this.appendDummyInput().appendField("Data Rate").appendField(new Blockly.FieldDropdown([["Off","0"],["3Hz","1"],["6Hz","2"],["12Hz","3"],["25Hz","4"],["50Hz","5"],["100Hz","6"],["400Hz","7"],["800Hz","8"],["1600Hz","9"]]),"DATA_RATE");this.appendDummyInput().appendField("Full Scale").appendField(new Blockly.FieldDropdown([["2g","0"],["4g","1"],["6g","2"],["8g","3"],
["16g","4"]]),"FULL_SCALE");this.appendDummyInput().appendField("and Filter Bandwidth").appendField(new Blockly.FieldDropdown([["800Hz","0"],["400Hz","1"],["200Hz","2"],["50Hz","3"]]),"FILTER_BANDWIDTH");this.appendValueInput("_UID").setCheck("String").appendField("of Accelerometer Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Accelerometer_Bricklet_JavaScript.html#BrickletAccelerometer.setConfiguration")}};
Blockly.Blocks.bricklet_accelerometer_get_configuration={init:function(){this.appendDummyInput().appendField("Get Configuration");this.appendValueInput("_UID").setCheck("String").appendField("of Accelerometer Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Accelerometer_Bricklet_JavaScript.html#BrickletAccelerometer.getConfiguration")}};
Blockly.Blocks.bricklet_accelerometer_led_on={init:function(){this.appendDummyInput().appendField("LED On");this.appendValueInput("_UID").setCheck("String").appendField("of Accelerometer Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Accelerometer_Bricklet_JavaScript.html#BrickletAccelerometer.ledOn")}};
Blockly.Blocks.bricklet_accelerometer_led_off={init:function(){this.appendDummyInput().appendField("LED Off");this.appendValueInput("_UID").setCheck("String").appendField("of Accelerometer Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Accelerometer_Bricklet_JavaScript.html#BrickletAccelerometer.ledOff")}};
Blockly.Blocks.bricklet_accelerometer_is_led_on={init:function(){this.appendDummyInput().appendField("Is LED On");this.appendValueInput("_UID").setCheck("String").appendField("of Accelerometer Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Accelerometer_Bricklet_JavaScript.html#BrickletAccelerometer.isLEDOn")}};
Blockly.Blocks.bricklet_accelerometer_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Accelerometer Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Accelerometer_Bricklet_JavaScript.html#BrickletAccelerometer.getIdentity")}};
Blockly.Blocks.bricklet_ambient_light_get_illuminance={init:function(){this.appendDummyInput().appendField("Get Illuminance");this.appendValueInput("_UID").setCheck("String").appendField("of Ambient Light Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AmbientLight_Bricklet_JavaScript.html#BrickletAmbientLight.getIlluminance")}};
Blockly.Blocks.bricklet_ambient_light_get_analog_value={init:function(){this.appendDummyInput().appendField("Get Analog Value");this.appendValueInput("_UID").setCheck("String").appendField("of Ambient Light Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AmbientLight_Bricklet_JavaScript.html#BrickletAmbientLight.getAnalogValue")}};
Blockly.Blocks.bricklet_ambient_light_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Ambient Light Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AmbientLight_Bricklet_JavaScript.html#BrickletAmbientLight.getIdentity")}};
Blockly.Blocks.bricklet_ambient_light_v2_get_illuminance={init:function(){this.appendDummyInput().appendField("Get Illuminance");this.appendValueInput("_UID").setCheck("String").appendField("of Ambient Light Bricklet 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AmbientLightV2_Bricklet_JavaScript.html#BrickletAmbientLightV2.getIlluminance")}};
Blockly.Blocks.bricklet_ambient_light_v2_set_configuration={init:function(){this.appendDummyInput().appendField("Set Configuration to");this.appendDummyInput().appendField("Illuminance Range").appendField(new Blockly.FieldDropdown([["Unlimited","6"],["64000Lux","0"],["32000Lux","1"],["16000Lux","2"],["8000Lux","3"],["1300Lux","4"],["600Lux","5"]]),"ILLUMINANCE_RANGE");this.appendDummyInput().appendField("and Integration Time").appendField(new Blockly.FieldDropdown([["50ms","0"],["100ms","1"],["150ms",
"2"],["200ms","3"],["250ms","4"],["300ms","5"],["350ms","6"],["400ms","7"]]),"INTEGRATION_TIME");this.appendValueInput("_UID").setCheck("String").appendField("of Ambient Light Bricklet 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AmbientLightV2_Bricklet_JavaScript.html#BrickletAmbientLightV2.setConfiguration")}};
Blockly.Blocks.bricklet_ambient_light_v2_get_configuration={init:function(){this.appendDummyInput().appendField("Get Configuration");this.appendValueInput("_UID").setCheck("String").appendField("of Ambient Light Bricklet 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AmbientLightV2_Bricklet_JavaScript.html#BrickletAmbientLightV2.getConfiguration")}};
Blockly.Blocks.bricklet_ambient_light_v2_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Ambient Light Bricklet 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AmbientLightV2_Bricklet_JavaScript.html#BrickletAmbientLightV2.getIdentity")}};
Blockly.Blocks.bricklet_analog_in_get_voltage={init:function(){this.appendDummyInput().appendField("Get Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of Analog In Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogIn_Bricklet_JavaScript.html#BrickletAnalogIn.getVoltage")}};
Blockly.Blocks.bricklet_analog_in_get_analog_value={init:function(){this.appendDummyInput().appendField("Get Analog Value");this.appendValueInput("_UID").setCheck("String").appendField("of Analog In Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogIn_Bricklet_JavaScript.html#BrickletAnalogIn.getAnalogValue")}};
Blockly.Blocks.bricklet_analog_in_set_range={init:function(){this.appendDummyInput().appendField("Set Range to");this.appendDummyInput().appendField("Range").appendField(new Blockly.FieldDropdown([["Automatic","0"],["Up To 6V","1"],["Up To 10V","2"],["Up To 36V","3"],["Up To 45V","4"],["Up To 3V","5"]]),"RANGE");this.appendValueInput("_UID").setCheck("String").appendField("of Analog In Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogIn_Bricklet_JavaScript.html#BrickletAnalogIn.setRange")}};
Blockly.Blocks.bricklet_analog_in_get_range={init:function(){this.appendDummyInput().appendField("Get Range");this.appendValueInput("_UID").setCheck("String").appendField("of Analog In Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogIn_Bricklet_JavaScript.html#BrickletAnalogIn.getRange")}};
Blockly.Blocks.bricklet_analog_in_set_averaging={init:function(){this.appendDummyInput().appendField("Set Averaging to");this.appendValueInput("AVERAGE").setCheck("Number").appendField("Average");this.appendValueInput("_UID").setCheck("String").appendField("of Analog In Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogIn_Bricklet_JavaScript.html#BrickletAnalogIn.setAveraging")}};
Blockly.Blocks.bricklet_analog_in_get_averaging={init:function(){this.appendDummyInput().appendField("Get Averaging");this.appendValueInput("_UID").setCheck("String").appendField("of Analog In Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogIn_Bricklet_JavaScript.html#BrickletAnalogIn.getAveraging")}};
Blockly.Blocks.bricklet_analog_in_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Analog In Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogIn_Bricklet_JavaScript.html#BrickletAnalogIn.getIdentity")}};
Blockly.Blocks.bricklet_analog_in_v2_get_voltage={init:function(){this.appendDummyInput().appendField("Get Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of Analog In Bricklet 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogInV2_Bricklet_JavaScript.html#BrickletAnalogInV2.getVoltage")}};
Blockly.Blocks.bricklet_analog_in_v2_get_analog_value={init:function(){this.appendDummyInput().appendField("Get Analog Value");this.appendValueInput("_UID").setCheck("String").appendField("of Analog In Bricklet 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogInV2_Bricklet_JavaScript.html#BrickletAnalogInV2.getAnalogValue")}};
Blockly.Blocks.bricklet_analog_in_v2_set_moving_average={init:function(){this.appendDummyInput().appendField("Set Moving Average to");this.appendValueInput("AVERAGE").setCheck("Number").appendField("Average");this.appendValueInput("_UID").setCheck("String").appendField("of Analog In Bricklet 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogInV2_Bricklet_JavaScript.html#BrickletAnalogInV2.setMovingAverage")}};
Blockly.Blocks.bricklet_analog_in_v2_get_moving_average={init:function(){this.appendDummyInput().appendField("Get Moving Average");this.appendValueInput("_UID").setCheck("String").appendField("of Analog In Bricklet 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogInV2_Bricklet_JavaScript.html#BrickletAnalogInV2.getMovingAverage")}};
Blockly.Blocks.bricklet_analog_in_v2_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Analog In Bricklet 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogInV2_Bricklet_JavaScript.html#BrickletAnalogInV2.getIdentity")}};
Blockly.Blocks.bricklet_analog_out_set_voltage={init:function(){this.appendDummyInput().appendField("Set Voltage to");this.appendValueInput("VOLTAGE").setCheck("Number").appendField("Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of Analog Out Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogOut_Bricklet_JavaScript.html#BrickletAnalogOut.setVoltage")}};
Blockly.Blocks.bricklet_analog_out_get_voltage={init:function(){this.appendDummyInput().appendField("Get Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of Analog Out Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogOut_Bricklet_JavaScript.html#BrickletAnalogOut.getVoltage")}};
Blockly.Blocks.bricklet_analog_out_set_mode={init:function(){this.appendDummyInput().appendField("Set Mode to");this.appendDummyInput().appendField("Mode").appendField(new Blockly.FieldDropdown([["Analog Value","0"],["1k To Ground","1"],["100k To Ground","2"],["500k To Ground","3"]]),"MODE");this.appendValueInput("_UID").setCheck("String").appendField("of Analog Out Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogOut_Bricklet_JavaScript.html#BrickletAnalogOut.setMode")}};
Blockly.Blocks.bricklet_analog_out_get_mode={init:function(){this.appendDummyInput().appendField("Get Mode");this.appendValueInput("_UID").setCheck("String").appendField("of Analog Out Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogOut_Bricklet_JavaScript.html#BrickletAnalogOut.getMode")}};
Blockly.Blocks.bricklet_analog_out_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Analog Out Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogOut_Bricklet_JavaScript.html#BrickletAnalogOut.getIdentity")}};
Blockly.Blocks.bricklet_analog_out_v2_set_output_voltage={init:function(){this.appendDummyInput().appendField("Set Output Voltage to");this.appendValueInput("VOLTAGE").setCheck("Number").appendField("Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of Analog Out Bricklet 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogOutV2_Bricklet_JavaScript.html#BrickletAnalogOutV2.setOutputVoltage")}};
Blockly.Blocks.bricklet_analog_out_v2_get_output_voltage={init:function(){this.appendDummyInput().appendField("Get Output Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of Analog Out Bricklet 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogOutV2_Bricklet_JavaScript.html#BrickletAnalogOutV2.getOutputVoltage")}};
Blockly.Blocks.bricklet_analog_out_v2_get_input_voltage={init:function(){this.appendDummyInput().appendField("Get Input Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of Analog Out Bricklet 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogOutV2_Bricklet_JavaScript.html#BrickletAnalogOutV2.getInputVoltage")}};
Blockly.Blocks.bricklet_analog_out_v2_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Analog Out Bricklet 2.0");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/AnalogOutV2_Bricklet_JavaScript.html#BrickletAnalogOutV2.getIdentity")}};
Blockly.Blocks.bricklet_barometer_get_air_pressure={init:function(){this.appendDummyInput().appendField("Get Air Pressure");this.appendValueInput("_UID").setCheck("String").appendField("of Barometer Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Barometer_Bricklet_JavaScript.html#BrickletBarometer.getAirPressure")}};
Blockly.Blocks.bricklet_barometer_get_altitude={init:function(){this.appendDummyInput().appendField("Get Altitude");this.appendValueInput("_UID").setCheck("String").appendField("of Barometer Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Barometer_Bricklet_JavaScript.html#BrickletBarometer.getAltitude")}};
Blockly.Blocks.bricklet_barometer_set_reference_air_pressure={init:function(){this.appendDummyInput().appendField("Set Reference Air Pressure to");this.appendValueInput("AIR_PRESSURE").setCheck("Number").appendField("Air Pressure");this.appendValueInput("_UID").setCheck("String").appendField("of Barometer Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Barometer_Bricklet_JavaScript.html#BrickletBarometer.setReferenceAirPressure")}};
Blockly.Blocks.bricklet_barometer_get_chip_temperature={init:function(){this.appendDummyInput().appendField("Get Chip Temperature");this.appendValueInput("_UID").setCheck("String").appendField("of Barometer Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Barometer_Bricklet_JavaScript.html#BrickletBarometer.getChipTemperature")}};
Blockly.Blocks.bricklet_barometer_get_reference_air_pressure={init:function(){this.appendDummyInput().appendField("Get Reference Air Pressure");this.appendValueInput("_UID").setCheck("String").appendField("of Barometer Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Barometer_Bricklet_JavaScript.html#BrickletBarometer.getReferenceAirPressure")}};
Blockly.Blocks.bricklet_barometer_set_averaging={init:function(){this.appendDummyInput().appendField("Set Averaging to");this.appendValueInput("MOVING_AVERAGE_PRESSURE").setCheck("Number").appendField("Moving Average Pressure");this.appendValueInput("AVERAGE_PRESSURE").setCheck("Number").appendField("Average Pressure");this.appendValueInput("AVERAGE_TEMPERATURE").setCheck("Number").appendField("and Average Temperature");this.appendValueInput("_UID").setCheck("String").appendField("of Barometer Bricklet");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Barometer_Bricklet_JavaScript.html#BrickletBarometer.setAveraging")}};
Blockly.Blocks.bricklet_barometer_get_averaging={init:function(){this.appendDummyInput().appendField("Get Averaging");this.appendValueInput("_UID").setCheck("String").appendField("of Barometer Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Barometer_Bricklet_JavaScript.html#BrickletBarometer.getAveraging")}};
Blockly.Blocks.bricklet_barometer_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Barometer Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Barometer_Bricklet_JavaScript.html#BrickletBarometer.getIdentity")}};
Blockly.Blocks.bricklet_co2_get_co2_concentration={init:function(){this.appendDummyInput().appendField("Get CO2 Concentration");this.appendValueInput("_UID").setCheck("String").appendField("of CO2 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/CO2_Bricklet_JavaScript.html#BrickletCO2.getCO2Concentration")}};
Blockly.Blocks.bricklet_co2_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of CO2 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/CO2_Bricklet_JavaScript.html#BrickletCO2.getIdentity")}};
Blockly.Blocks.bricklet_color_get_color={init:function(){this.appendDummyInput().appendField("Get Color");this.appendValueInput("_UID").setCheck("String").appendField("of Color Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Color_Bricklet_JavaScript.html#BrickletColor.getColor")}};
Blockly.Blocks.bricklet_color_light_on={init:function(){this.appendDummyInput().appendField("Light On");this.appendValueInput("_UID").setCheck("String").appendField("of Color Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Color_Bricklet_JavaScript.html#BrickletColor.lightOn")}};
Blockly.Blocks.bricklet_color_light_off={init:function(){this.appendDummyInput().appendField("Light Off");this.appendValueInput("_UID").setCheck("String").appendField("of Color Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Color_Bricklet_JavaScript.html#BrickletColor.lightOff")}};
Blockly.Blocks.bricklet_color_is_light_on={init:function(){this.appendDummyInput().appendField("Is Light On");this.appendValueInput("_UID").setCheck("String").appendField("of Color Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Color_Bricklet_JavaScript.html#BrickletColor.isLightOn")}};
Blockly.Blocks.bricklet_color_set_config={init:function(){this.appendDummyInput().appendField("Set Config to");this.appendDummyInput().appendField("Gain").appendField(new Blockly.FieldDropdown([["1x","0"],["4x","1"],["16x","2"],["60x","3"]]),"GAIN");this.appendDummyInput().appendField("and Integration Time").appendField(new Blockly.FieldDropdown([["2ms","0"],["24ms","1"],["101ms","2"],["154ms","3"],["700ms","4"]]),"INTEGRATION_TIME");this.appendValueInput("_UID").setCheck("String").appendField("of Color Bricklet");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Color_Bricklet_JavaScript.html#BrickletColor.setConfig")}};
Blockly.Blocks.bricklet_color_get_config={init:function(){this.appendDummyInput().appendField("Get Config");this.appendValueInput("_UID").setCheck("String").appendField("of Color Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Color_Bricklet_JavaScript.html#BrickletColor.getConfig")}};
Blockly.Blocks.bricklet_color_get_illuminance={init:function(){this.appendDummyInput().appendField("Get Illuminance");this.appendValueInput("_UID").setCheck("String").appendField("of Color Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Color_Bricklet_JavaScript.html#BrickletColor.getIlluminance")}};
Blockly.Blocks.bricklet_color_get_color_temperature={init:function(){this.appendDummyInput().appendField("Get Color Temperature");this.appendValueInput("_UID").setCheck("String").appendField("of Color Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Color_Bricklet_JavaScript.html#BrickletColor.getColorTemperature")}};
Blockly.Blocks.bricklet_color_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Color Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Color_Bricklet_JavaScript.html#BrickletColor.getIdentity")}};
Blockly.Blocks.bricklet_current12_get_current={init:function(){this.appendDummyInput().appendField("Get Current");this.appendValueInput("_UID").setCheck("String").appendField("of Current12 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Current12_Bricklet_JavaScript.html#BrickletCurrent12.getCurrent")}};
Blockly.Blocks.bricklet_current12_calibrate={init:function(){this.appendDummyInput().appendField("Calibrate");this.appendValueInput("_UID").setCheck("String").appendField("of Current12 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Current12_Bricklet_JavaScript.html#BrickletCurrent12.calibrate")}};
Blockly.Blocks.bricklet_current12_is_over_current={init:function(){this.appendDummyInput().appendField("Is Over Current");this.appendValueInput("_UID").setCheck("String").appendField("of Current12 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Current12_Bricklet_JavaScript.html#BrickletCurrent12.isOverCurrent")}};
Blockly.Blocks.bricklet_current12_get_analog_value={init:function(){this.appendDummyInput().appendField("Get Analog Value");this.appendValueInput("_UID").setCheck("String").appendField("of Current12 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Current12_Bricklet_JavaScript.html#BrickletCurrent12.getAnalogValue")}};
Blockly.Blocks.bricklet_current12_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Current12 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Current12_Bricklet_JavaScript.html#BrickletCurrent12.getIdentity")}};
Blockly.Blocks.bricklet_current25_get_current={init:function(){this.appendDummyInput().appendField("Get Current");this.appendValueInput("_UID").setCheck("String").appendField("of Current25 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Current25_Bricklet_JavaScript.html#BrickletCurrent25.getCurrent")}};
Blockly.Blocks.bricklet_current25_calibrate={init:function(){this.appendDummyInput().appendField("Calibrate");this.appendValueInput("_UID").setCheck("String").appendField("of Current25 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Current25_Bricklet_JavaScript.html#BrickletCurrent25.calibrate")}};
Blockly.Blocks.bricklet_current25_is_over_current={init:function(){this.appendDummyInput().appendField("Is Over Current");this.appendValueInput("_UID").setCheck("String").appendField("of Current25 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Current25_Bricklet_JavaScript.html#BrickletCurrent25.isOverCurrent")}};
Blockly.Blocks.bricklet_current25_get_analog_value={init:function(){this.appendDummyInput().appendField("Get Analog Value");this.appendValueInput("_UID").setCheck("String").appendField("of Current25 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Current25_Bricklet_JavaScript.html#BrickletCurrent25.getAnalogValue")}};
Blockly.Blocks.bricklet_current25_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Current25 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Current25_Bricklet_JavaScript.html#BrickletCurrent25.getIdentity")}};
Blockly.Blocks.bricklet_distance_ir_get_distance={init:function(){this.appendDummyInput().appendField("Get Distance");this.appendValueInput("_UID").setCheck("String").appendField("of Distance IR Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DistanceIR_Bricklet_JavaScript.html#BrickletDistanceIR.getDistance")}};
Blockly.Blocks.bricklet_distance_ir_get_analog_value={init:function(){this.appendDummyInput().appendField("Get Analog Value");this.appendValueInput("_UID").setCheck("String").appendField("of Distance IR Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DistanceIR_Bricklet_JavaScript.html#BrickletDistanceIR.getAnalogValue")}};
Blockly.Blocks.bricklet_distance_ir_set_sampling_point={init:function(){this.appendDummyInput().appendField("Set Sampling Point to");this.appendValueInput("POSITION").setCheck("Number").appendField("Position");this.appendValueInput("DISTANCE").setCheck("Number").appendField("and Distance");this.appendValueInput("_UID").setCheck("String").appendField("of Distance IR Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DistanceIR_Bricklet_JavaScript.html#BrickletDistanceIR.setSamplingPoint")}};
Blockly.Blocks.bricklet_distance_ir_get_sampling_point={init:function(){this.appendDummyInput().appendField("Get Sampling Point with");this.appendValueInput("POSITION").setCheck("Number").appendField("Position");this.appendValueInput("_UID").setCheck("String").appendField("of Distance IR Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DistanceIR_Bricklet_JavaScript.html#BrickletDistanceIR.getSamplingPoint")}};
Blockly.Blocks.bricklet_distance_ir_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Distance IR Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DistanceIR_Bricklet_JavaScript.html#BrickletDistanceIR.getIdentity")}};
Blockly.Blocks.bricklet_distance_us_get_distance_value={init:function(){this.appendDummyInput().appendField("Get Distance Value");this.appendValueInput("_UID").setCheck("String").appendField("of Distance US Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DistanceUS_Bricklet_JavaScript.html#BrickletDistanceUS.getDistanceValue")}};
Blockly.Blocks.bricklet_distance_us_set_moving_average={init:function(){this.appendDummyInput().appendField("Set Moving Average to");this.appendValueInput("AVERAGE").setCheck("Number").appendField("Average");this.appendValueInput("_UID").setCheck("String").appendField("of Distance US Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DistanceUS_Bricklet_JavaScript.html#BrickletDistanceUS.setMovingAverage")}};
Blockly.Blocks.bricklet_distance_us_get_moving_average={init:function(){this.appendDummyInput().appendField("Get Moving Average");this.appendValueInput("_UID").setCheck("String").appendField("of Distance US Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DistanceUS_Bricklet_JavaScript.html#BrickletDistanceUS.getMovingAverage")}};
Blockly.Blocks.bricklet_distance_us_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Distance US Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DistanceUS_Bricklet_JavaScript.html#BrickletDistanceUS.getIdentity")}};
Blockly.Blocks.bricklet_dual_button_set_led_state={init:function(){this.appendDummyInput().appendField("Set LED State to");this.appendDummyInput().appendField("LED L").appendField(new Blockly.FieldDropdown([["Auto Toggle On","0"],["Auto Toggle Off","1"],["On","2"],["Off","3"]]),"LED_L");this.appendDummyInput().appendField("and LED R").appendField(new Blockly.FieldDropdown([["Auto Toggle On","0"],["Auto Toggle Off","1"],["On","2"],["Off","3"]]),"LED_R");this.appendValueInput("_UID").setCheck("String").appendField("of Dual Button Bricklet");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DualButton_Bricklet_JavaScript.html#BrickletDualButton.setLEDState")}};
Blockly.Blocks.bricklet_dual_button_get_led_state={init:function(){this.appendDummyInput().appendField("Get LED State");this.appendValueInput("_UID").setCheck("String").appendField("of Dual Button Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DualButton_Bricklet_JavaScript.html#BrickletDualButton.getLEDState")}};
Blockly.Blocks.bricklet_dual_button_get_button_state={init:function(){this.appendDummyInput().appendField("Get Button State");this.appendValueInput("_UID").setCheck("String").appendField("of Dual Button Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DualButton_Bricklet_JavaScript.html#BrickletDualButton.getButtonState")}};
Blockly.Blocks.bricklet_dual_button_set_selected_led_state={init:function(){this.appendDummyInput().appendField("Set Selected LED State to");this.appendDummyInput().appendField("LED").appendField(new Blockly.FieldDropdown([["Left","0"],["Right","1"]]),"LED");this.appendDummyInput().appendField("and State").appendField(new Blockly.FieldDropdown([["Auto Toggle On","0"],["Auto Toggle Off","1"],["On","2"],["Off","3"]]),"STATE");this.appendValueInput("_UID").setCheck("String").appendField("of Dual Button Bricklet");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DualButton_Bricklet_JavaScript.html#BrickletDualButton.setSelectedLEDState")}};
Blockly.Blocks.bricklet_dual_button_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Dual Button Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DualButton_Bricklet_JavaScript.html#BrickletDualButton.getIdentity")}};
Blockly.Blocks.bricklet_dual_relay_set_state={init:function(){this.appendDummyInput().appendField("Set State to");this.appendDummyInput().appendField("Relay1").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"RELAY1");this.appendDummyInput().appendField("and Relay2").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"RELAY2");this.appendValueInput("_UID").setCheck("String").appendField("of Dual Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DualRelay_Bricklet_JavaScript.html#BrickletDualRelay.setState")}};
Blockly.Blocks.bricklet_dual_relay_get_state={init:function(){this.appendDummyInput().appendField("Get State");this.appendValueInput("_UID").setCheck("String").appendField("of Dual Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DualRelay_Bricklet_JavaScript.html#BrickletDualRelay.getState")}};
Blockly.Blocks.bricklet_dual_relay_set_monoflop={init:function(){this.appendDummyInput().appendField("Set Monoflop to");this.appendValueInput("RELAY").setCheck("Number").appendField("Relay");this.appendDummyInput().appendField("State").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"STATE");this.appendValueInput("TIME").setCheck("Number").appendField("and Time");this.appendValueInput("_UID").setCheck("String").appendField("of Dual Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DualRelay_Bricklet_JavaScript.html#BrickletDualRelay.setMonoflop")}};
Blockly.Blocks.bricklet_dual_relay_get_monoflop={init:function(){this.appendDummyInput().appendField("Get Monoflop with");this.appendValueInput("RELAY").setCheck("Number").appendField("Relay");this.appendValueInput("_UID").setCheck("String").appendField("of Dual Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);
this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DualRelay_Bricklet_JavaScript.html#BrickletDualRelay.getMonoflop")}};
Blockly.Blocks.bricklet_dual_relay_set_selected_state={init:function(){this.appendDummyInput().appendField("Set Selected State to");this.appendValueInput("RELAY").setCheck("Number").appendField("Relay");this.appendDummyInput().appendField("and State").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"STATE");this.appendValueInput("_UID").setCheck("String").appendField("of Dual Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DualRelay_Bricklet_JavaScript.html#BrickletDualRelay.setSelectedState")}};
Blockly.Blocks.bricklet_dual_relay_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Dual Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DualRelay_Bricklet_JavaScript.html#BrickletDualRelay.getIdentity")}};
Blockly.Blocks.bricklet_dust_detector_get_dust_density={init:function(){this.appendDummyInput().appendField("Get Dust Density");this.appendValueInput("_UID").setCheck("String").appendField("of Dust Detector Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DustDetector_Bricklet_JavaScript.html#BrickletDustDetector.getDustDensity")}};
Blockly.Blocks.bricklet_dust_detector_set_moving_average={init:function(){this.appendDummyInput().appendField("Set Moving Average to");this.appendValueInput("AVERAGE").setCheck("Number").appendField("Average");this.appendValueInput("_UID").setCheck("String").appendField("of Dust Detector Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DustDetector_Bricklet_JavaScript.html#BrickletDustDetector.setMovingAverage")}};
Blockly.Blocks.bricklet_dust_detector_get_moving_average={init:function(){this.appendDummyInput().appendField("Get Moving Average");this.appendValueInput("_UID").setCheck("String").appendField("of Dust Detector Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DustDetector_Bricklet_JavaScript.html#BrickletDustDetector.getMovingAverage")}};
Blockly.Blocks.bricklet_dust_detector_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Dust Detector Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/DustDetector_Bricklet_JavaScript.html#BrickletDustDetector.getIdentity")}};
Blockly.Blocks.bricklet_gps_get_coordinates={init:function(){this.appendDummyInput().appendField("Get Coordinates");this.appendValueInput("_UID").setCheck("String").appendField("of GPS Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/GPS_Bricklet_JavaScript.html#BrickletGPS.getCoordinates")}};
Blockly.Blocks.bricklet_gps_get_status={init:function(){this.appendDummyInput().appendField("Get Status");this.appendValueInput("_UID").setCheck("String").appendField("of GPS Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/GPS_Bricklet_JavaScript.html#BrickletGPS.getStatus")}};
Blockly.Blocks.bricklet_gps_get_altitude={init:function(){this.appendDummyInput().appendField("Get Altitude");this.appendValueInput("_UID").setCheck("String").appendField("of GPS Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/GPS_Bricklet_JavaScript.html#BrickletGPS.getAltitude")}};
Blockly.Blocks.bricklet_gps_get_motion={init:function(){this.appendDummyInput().appendField("Get Motion");this.appendValueInput("_UID").setCheck("String").appendField("of GPS Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/GPS_Bricklet_JavaScript.html#BrickletGPS.getMotion")}};
Blockly.Blocks.bricklet_gps_get_date_time={init:function(){this.appendDummyInput().appendField("Get Date Time");this.appendValueInput("_UID").setCheck("String").appendField("of GPS Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/GPS_Bricklet_JavaScript.html#BrickletGPS.getDateTime")}};
Blockly.Blocks.bricklet_gps_restart={init:function(){this.appendDummyInput().appendField("Restart to");this.appendDummyInput().appendField("Restart Type").appendField(new Blockly.FieldDropdown([["Hot Start","0"],["Warm Start","1"],["Cold Start","2"],["Factory Reset","3"]]),"RESTART_TYPE");this.appendValueInput("_UID").setCheck("String").appendField("of GPS Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/GPS_Bricklet_JavaScript.html#BrickletGPS.restart")}};
Blockly.Blocks.bricklet_gps_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of GPS Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/GPS_Bricklet_JavaScript.html#BrickletGPS.getIdentity")}};
Blockly.Blocks.bricklet_hall_effect_get_value={init:function(){this.appendDummyInput().appendField("Get Value");this.appendValueInput("_UID").setCheck("String").appendField("of Hall Effect Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/HallEffect_Bricklet_JavaScript.html#BrickletHallEffect.getValue")}};
Blockly.Blocks.bricklet_hall_effect_get_edge_count={init:function(){this.appendDummyInput().appendField("Get Edge Count with");this.appendDummyInput().appendField("Reset Counter").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"RESET_COUNTER");this.appendValueInput("_UID").setCheck("String").appendField("of Hall Effect Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);
this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/HallEffect_Bricklet_JavaScript.html#BrickletHallEffect.getEdgeCount")}};
Blockly.Blocks.bricklet_hall_effect_set_edge_count_config={init:function(){this.appendDummyInput().appendField("Set Edge Count Config to");this.appendDummyInput().appendField("Edge Type").appendField(new Blockly.FieldDropdown([["Rising","0"],["Falling","1"],["Both","2"]]),"EDGE_TYPE");this.appendValueInput("DEBOUNCE").setCheck("Number").appendField("and Debounce");this.appendValueInput("_UID").setCheck("String").appendField("of Hall Effect Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/HallEffect_Bricklet_JavaScript.html#BrickletHallEffect.setEdgeCountConfig")}};
Blockly.Blocks.bricklet_hall_effect_get_edge_count_config={init:function(){this.appendDummyInput().appendField("Get Edge Count Config");this.appendValueInput("_UID").setCheck("String").appendField("of Hall Effect Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/HallEffect_Bricklet_JavaScript.html#BrickletHallEffect.getEdgeCountConfig")}};
Blockly.Blocks.bricklet_hall_effect_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Hall Effect Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/HallEffect_Bricklet_JavaScript.html#BrickletHallEffect.getIdentity")}};
Blockly.Blocks.bricklet_humidity_get_humidity={init:function(){this.appendDummyInput().appendField("Get Humidity");this.appendValueInput("_UID").setCheck("String").appendField("of Humidity Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Humidity_Bricklet_JavaScript.html#BrickletHumidity.getHumidity")}};
Blockly.Blocks.bricklet_humidity_get_analog_value={init:function(){this.appendDummyInput().appendField("Get Analog Value");this.appendValueInput("_UID").setCheck("String").appendField("of Humidity Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Humidity_Bricklet_JavaScript.html#BrickletHumidity.getAnalogValue")}};
Blockly.Blocks.bricklet_humidity_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Humidity Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Humidity_Bricklet_JavaScript.html#BrickletHumidity.getIdentity")}};
Blockly.Blocks.bricklet_industrial_analog_out_enable={init:function(){this.appendDummyInput().appendField("Enable");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Analog Out Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialAnalogOut_Bricklet_JavaScript.html#BrickletIndustrialAnalogOut.enable")}};
Blockly.Blocks.bricklet_industrial_analog_out_disable={init:function(){this.appendDummyInput().appendField("Disable");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Analog Out Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialAnalogOut_Bricklet_JavaScript.html#BrickletIndustrialAnalogOut.disable")}};
Blockly.Blocks.bricklet_industrial_analog_out_is_enabled={init:function(){this.appendDummyInput().appendField("Is Enabled");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Analog Out Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialAnalogOut_Bricklet_JavaScript.html#BrickletIndustrialAnalogOut.isEnabled")}};
Blockly.Blocks.bricklet_industrial_analog_out_set_voltage={init:function(){this.appendDummyInput().appendField("Set Voltage to");this.appendValueInput("VOLTAGE").setCheck("Number").appendField("Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Analog Out Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialAnalogOut_Bricklet_JavaScript.html#BrickletIndustrialAnalogOut.setVoltage")}};
Blockly.Blocks.bricklet_industrial_analog_out_get_voltage={init:function(){this.appendDummyInput().appendField("Get Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Analog Out Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialAnalogOut_Bricklet_JavaScript.html#BrickletIndustrialAnalogOut.getVoltage")}};
Blockly.Blocks.bricklet_industrial_analog_out_set_current={init:function(){this.appendDummyInput().appendField("Set Current to");this.appendValueInput("CURRENT").setCheck("Number").appendField("Current");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Analog Out Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialAnalogOut_Bricklet_JavaScript.html#BrickletIndustrialAnalogOut.setCurrent")}};
Blockly.Blocks.bricklet_industrial_analog_out_get_current={init:function(){this.appendDummyInput().appendField("Get Current");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Analog Out Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialAnalogOut_Bricklet_JavaScript.html#BrickletIndustrialAnalogOut.getCurrent")}};
Blockly.Blocks.bricklet_industrial_analog_out_set_configuration={init:function(){this.appendDummyInput().appendField("Set Configuration to");this.appendDummyInput().appendField("Voltage Range").appendField(new Blockly.FieldDropdown([["0 To 5V","0"],["0 To 10V","1"]]),"VOLTAGE_RANGE");this.appendDummyInput().appendField("and Current Range").appendField(new Blockly.FieldDropdown([["4 To 20mA","0"],["0 To 20mA","1"],["0 To 24ma","2"]]),"CURRENT_RANGE");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Analog Out Bricklet");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialAnalogOut_Bricklet_JavaScript.html#BrickletIndustrialAnalogOut.setConfiguration")}};
Blockly.Blocks.bricklet_industrial_analog_out_get_configuration={init:function(){this.appendDummyInput().appendField("Get Configuration");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Analog Out Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialAnalogOut_Bricklet_JavaScript.html#BrickletIndustrialAnalogOut.getConfiguration")}};
Blockly.Blocks.bricklet_industrial_analog_out_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Analog Out Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialAnalogOut_Bricklet_JavaScript.html#BrickletIndustrialAnalogOut.getIdentity")}};
Blockly.Blocks.bricklet_industrial_digital_in_4_get_value={init:function(){this.appendDummyInput().appendField("Get Value");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Digital In 4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDigitalIn4_Bricklet_JavaScript.html#BrickletIndustrialDigitalIn4.getValue")}};
Blockly.Blocks.bricklet_industrial_digital_in_4_set_group={init:function(){this.appendDummyInput().appendField("Set Group to");this.appendValueInput("GROUP").setCheck("String").appendField("Group");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Digital In 4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDigitalIn4_Bricklet_JavaScript.html#BrickletIndustrialDigitalIn4.setGroup")}};
Blockly.Blocks.bricklet_industrial_digital_in_4_get_group={init:function(){this.appendDummyInput().appendField("Get Group");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Digital In 4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"String");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDigitalIn4_Bricklet_JavaScript.html#BrickletIndustrialDigitalIn4.getGroup")}};
Blockly.Blocks.bricklet_industrial_digital_in_4_get_available_for_group={init:function(){this.appendDummyInput().appendField("Get Available For Group");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Digital In 4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);
this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDigitalIn4_Bricklet_JavaScript.html#BrickletIndustrialDigitalIn4.getAvailableForGroup")}};
Blockly.Blocks.bricklet_industrial_digital_in_4_get_edge_count={init:function(){this.appendDummyInput().appendField("Get Edge Count with");this.appendValueInput("PIN").setCheck("Number").appendField("Pin");this.appendDummyInput().appendField("and Reset Counter").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"RESET_COUNTER");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Digital In 4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDigitalIn4_Bricklet_JavaScript.html#BrickletIndustrialDigitalIn4.getEdgeCount")}};
Blockly.Blocks.bricklet_industrial_digital_in_4_set_edge_count_config={init:function(){this.appendDummyInput().appendField("Set Edge Count Config to");this.appendValueInput("SELECTION_MASK").setCheck("Number").appendField("Selection Mask");this.appendDummyInput().appendField("Edge Type").appendField(new Blockly.FieldDropdown([["Rising","0"],["Falling","1"],["Both","2"]]),"EDGE_TYPE");this.appendValueInput("DEBOUNCE").setCheck("Number").appendField("and Debounce");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Digital In 4 Bricklet");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDigitalIn4_Bricklet_JavaScript.html#BrickletIndustrialDigitalIn4.setEdgeCountConfig")}};
Blockly.Blocks.bricklet_industrial_digital_in_4_get_edge_count_config={init:function(){this.appendDummyInput().appendField("Get Edge Count Config with");this.appendValueInput("PIN").setCheck("Number").appendField("Pin");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Digital In 4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");
this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDigitalIn4_Bricklet_JavaScript.html#BrickletIndustrialDigitalIn4.getEdgeCountConfig")}};
Blockly.Blocks.bricklet_industrial_digital_in_4_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Digital In 4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDigitalIn4_Bricklet_JavaScript.html#BrickletIndustrialDigitalIn4.getIdentity")}};
Blockly.Blocks.bricklet_industrial_digital_out_4_set_value={init:function(){this.appendDummyInput().appendField("Set Value to");this.appendValueInput("VALUE_MASK").setCheck("Number").appendField("Value Mask");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Digital Out 4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDigitalOut4_Bricklet_JavaScript.html#BrickletIndustrialDigitalOut4.setValue")}};
Blockly.Blocks.bricklet_industrial_digital_out_4_get_value={init:function(){this.appendDummyInput().appendField("Get Value");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Digital Out 4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDigitalOut4_Bricklet_JavaScript.html#BrickletIndustrialDigitalOut4.getValue")}};
Blockly.Blocks.bricklet_industrial_digital_out_4_set_monoflop={init:function(){this.appendDummyInput().appendField("Set Monoflop to");this.appendValueInput("SELECTION_MASK").setCheck("Number").appendField("Selection Mask");this.appendValueInput("VALUE_MASK").setCheck("Number").appendField("Value Mask");this.appendValueInput("TIME").setCheck("Number").appendField("and Time");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Digital Out 4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDigitalOut4_Bricklet_JavaScript.html#BrickletIndustrialDigitalOut4.setMonoflop")}};
Blockly.Blocks.bricklet_industrial_digital_out_4_get_monoflop={init:function(){this.appendDummyInput().appendField("Get Monoflop with");this.appendValueInput("PIN").setCheck("Number").appendField("Pin");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Digital Out 4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDigitalOut4_Bricklet_JavaScript.html#BrickletIndustrialDigitalOut4.getMonoflop")}};
Blockly.Blocks.bricklet_industrial_digital_out_4_set_group={init:function(){this.appendDummyInput().appendField("Set Group to");this.appendValueInput("GROUP").setCheck("String").appendField("Group");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Digital Out 4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDigitalOut4_Bricklet_JavaScript.html#BrickletIndustrialDigitalOut4.setGroup")}};
Blockly.Blocks.bricklet_industrial_digital_out_4_get_group={init:function(){this.appendDummyInput().appendField("Get Group");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Digital Out 4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"String");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDigitalOut4_Bricklet_JavaScript.html#BrickletIndustrialDigitalOut4.getGroup")}};
Blockly.Blocks.bricklet_industrial_digital_out_4_get_available_for_group={init:function(){this.appendDummyInput().appendField("Get Available For Group");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Digital Out 4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);
this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDigitalOut4_Bricklet_JavaScript.html#BrickletIndustrialDigitalOut4.getAvailableForGroup")}};
Blockly.Blocks.bricklet_industrial_digital_out_4_set_selected_values={init:function(){this.appendDummyInput().appendField("Set Selected Values to");this.appendValueInput("SELECTION_MASK").setCheck("Number").appendField("Selection Mask");this.appendValueInput("VALUE_MASK").setCheck("Number").appendField("and Value Mask");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Digital Out 4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDigitalOut4_Bricklet_JavaScript.html#BrickletIndustrialDigitalOut4.setSelectedValues")}};
Blockly.Blocks.bricklet_industrial_digital_out_4_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Digital Out 4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDigitalOut4_Bricklet_JavaScript.html#BrickletIndustrialDigitalOut4.getIdentity")}};
Blockly.Blocks.bricklet_industrial_dual_0_20ma_get_current={init:function(){this.appendDummyInput().appendField("Get Current with");this.appendValueInput("SENSOR").setCheck("Number").appendField("Sensor");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Dual 0-20mA Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDual020mA_Bricklet_JavaScript.html#BrickletIndustrialDual020mA.getCurrent")}};
Blockly.Blocks.bricklet_industrial_dual_0_20ma_set_sample_rate={init:function(){this.appendDummyInput().appendField("Set Sample Rate to");this.appendDummyInput().appendField("Rate").appendField(new Blockly.FieldDropdown([["240 SPS","0"],["60 SPS","1"],["15 SPS","2"],["4 SPS","3"]]),"RATE");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Dual 0-20mA Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDual020mA_Bricklet_JavaScript.html#BrickletIndustrialDual020mA.setSampleRate")}};
Blockly.Blocks.bricklet_industrial_dual_0_20ma_get_sample_rate={init:function(){this.appendDummyInput().appendField("Get Sample Rate");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Dual 0-20mA Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDual020mA_Bricklet_JavaScript.html#BrickletIndustrialDual020mA.getSampleRate")}};
Blockly.Blocks.bricklet_industrial_dual_0_20ma_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Dual 0-20mA Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDual020mA_Bricklet_JavaScript.html#BrickletIndustrialDual020mA.getIdentity")}};
Blockly.Blocks.bricklet_industrial_dual_analog_in_get_voltage={init:function(){this.appendDummyInput().appendField("Get Voltage with");this.appendValueInput("CHANNEL").setCheck("Number").appendField("Channel");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Dual Analog In Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDualAnalogIn_Bricklet_JavaScript.html#BrickletIndustrialDualAnalogIn.getVoltage")}};
Blockly.Blocks.bricklet_industrial_dual_analog_in_set_sample_rate={init:function(){this.appendDummyInput().appendField("Set Sample Rate to");this.appendDummyInput().appendField("Rate").appendField(new Blockly.FieldDropdown([["976 SPS","0"],["488 SPS","1"],["244 SPS","2"],["122 SPS","3"],["61 SPS","4"],["4 SPS","5"],["2 SPS","6"],["1 SPS","7"]]),"RATE");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Dual Analog In Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDualAnalogIn_Bricklet_JavaScript.html#BrickletIndustrialDualAnalogIn.setSampleRate")}};
Blockly.Blocks.bricklet_industrial_dual_analog_in_get_sample_rate={init:function(){this.appendDummyInput().appendField("Get Sample Rate");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Dual Analog In Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);
this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDualAnalogIn_Bricklet_JavaScript.html#BrickletIndustrialDualAnalogIn.getSampleRate")}};
Blockly.Blocks.bricklet_industrial_dual_analog_in_set_calibration={init:function(){this.appendDummyInput().appendField("Set Calibration to");this.appendValueInput("OFFSET").setCheck("Number").appendField("Offset");this.appendValueInput("GAIN").setCheck("Number").appendField("and Gain");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Dual Analog In Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDualAnalogIn_Bricklet_JavaScript.html#BrickletIndustrialDualAnalogIn.setCalibration")}};
Blockly.Blocks.bricklet_industrial_dual_analog_in_get_calibration={init:function(){this.appendDummyInput().appendField("Get Calibration");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Dual Analog In Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);
this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDualAnalogIn_Bricklet_JavaScript.html#BrickletIndustrialDualAnalogIn.getCalibration")}};
Blockly.Blocks.bricklet_industrial_dual_analog_in_get_adc_values={init:function(){this.appendDummyInput().appendField("Get ADC Values");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Dual Analog In Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);
this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDualAnalogIn_Bricklet_JavaScript.html#BrickletIndustrialDualAnalogIn.getADCValues")}};
Blockly.Blocks.bricklet_industrial_dual_analog_in_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Dual Analog In Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialDualAnalogIn_Bricklet_JavaScript.html#BrickletIndustrialDualAnalogIn.getIdentity")}};
Blockly.Blocks.bricklet_industrial_quad_relay_set_value={init:function(){this.appendDummyInput().appendField("Set Value to");this.appendValueInput("VALUE_MASK").setCheck("Number").appendField("Value Mask");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Quad Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialQuadRelay_Bricklet_JavaScript.html#BrickletIndustrialQuadRelay.setValue")}};
Blockly.Blocks.bricklet_industrial_quad_relay_get_value={init:function(){this.appendDummyInput().appendField("Get Value");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Quad Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialQuadRelay_Bricklet_JavaScript.html#BrickletIndustrialQuadRelay.getValue")}};
Blockly.Blocks.bricklet_industrial_quad_relay_set_monoflop={init:function(){this.appendDummyInput().appendField("Set Monoflop to");this.appendValueInput("SELECTION_MASK").setCheck("Number").appendField("Selection Mask");this.appendValueInput("VALUE_MASK").setCheck("Number").appendField("Value Mask");this.appendValueInput("TIME").setCheck("Number").appendField("and Time");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Quad Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialQuadRelay_Bricklet_JavaScript.html#BrickletIndustrialQuadRelay.setMonoflop")}};
Blockly.Blocks.bricklet_industrial_quad_relay_get_monoflop={init:function(){this.appendDummyInput().appendField("Get Monoflop with");this.appendValueInput("PIN").setCheck("Number").appendField("Pin");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Quad Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialQuadRelay_Bricklet_JavaScript.html#BrickletIndustrialQuadRelay.getMonoflop")}};
Blockly.Blocks.bricklet_industrial_quad_relay_set_group={init:function(){this.appendDummyInput().appendField("Set Group to");this.appendValueInput("GROUP").setCheck("String").appendField("Group");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Quad Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialQuadRelay_Bricklet_JavaScript.html#BrickletIndustrialQuadRelay.setGroup")}};
Blockly.Blocks.bricklet_industrial_quad_relay_get_group={init:function(){this.appendDummyInput().appendField("Get Group");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Quad Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"String");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialQuadRelay_Bricklet_JavaScript.html#BrickletIndustrialQuadRelay.getGroup")}};
Blockly.Blocks.bricklet_industrial_quad_relay_get_available_for_group={init:function(){this.appendDummyInput().appendField("Get Available For Group");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Quad Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);
this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialQuadRelay_Bricklet_JavaScript.html#BrickletIndustrialQuadRelay.getAvailableForGroup")}};
Blockly.Blocks.bricklet_industrial_quad_relay_set_selected_values={init:function(){this.appendDummyInput().appendField("Set Selected Values to");this.appendValueInput("SELECTION_MASK").setCheck("Number").appendField("Selection Mask");this.appendValueInput("VALUE_MASK").setCheck("Number").appendField("and Value Mask");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Quad Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialQuadRelay_Bricklet_JavaScript.html#BrickletIndustrialQuadRelay.setSelectedValues")}};
Blockly.Blocks.bricklet_industrial_quad_relay_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Industrial Quad Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IndustrialQuadRelay_Bricklet_JavaScript.html#BrickletIndustrialQuadRelay.getIdentity")}};
Blockly.Blocks.bricklet_io16_set_port={init:function(){this.appendDummyInput().appendField("Set Port to");this.appendValueInput("PORT").setCheck("String").appendField("Port");this.appendValueInput("VALUE_MASK").setCheck("Number").appendField("and Value Mask");this.appendValueInput("_UID").setCheck("String").appendField("of IO-16 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);
this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO16_Bricklet_JavaScript.html#BrickletIO16.setPort")}};
Blockly.Blocks.bricklet_io16_get_port={init:function(){this.appendDummyInput().appendField("Get Port with");this.appendValueInput("PORT").setCheck("String").appendField("Port");this.appendValueInput("_UID").setCheck("String").appendField("of IO-16 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);
this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO16_Bricklet_JavaScript.html#BrickletIO16.getPort")}};
Blockly.Blocks.bricklet_io16_set_port_configuration={init:function(){this.appendDummyInput().appendField("Set Port Configuration to");this.appendValueInput("PORT").setCheck("String").appendField("Port");this.appendValueInput("SELECTION_MASK").setCheck("Number").appendField("Selection Mask");this.appendDummyInput().appendField("Direction").appendField(new Blockly.FieldDropdown([["In","i"],["Out","o"]]),"DIRECTION");this.appendDummyInput().appendField("and Value").appendField(new Blockly.FieldDropdown([["True",
"1"],["False","0"]]),"VALUE");this.appendValueInput("_UID").setCheck("String").appendField("of IO-16 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO16_Bricklet_JavaScript.html#BrickletIO16.setPortConfiguration")}};
Blockly.Blocks.bricklet_io16_get_port_configuration={init:function(){this.appendDummyInput().appendField("Get Port Configuration with");this.appendValueInput("PORT").setCheck("String").appendField("Port");this.appendValueInput("_UID").setCheck("String").appendField("of IO-16 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO16_Bricklet_JavaScript.html#BrickletIO16.getPortConfiguration")}};
Blockly.Blocks.bricklet_io16_set_port_monoflop={init:function(){this.appendDummyInput().appendField("Set Port Monoflop to");this.appendValueInput("PORT").setCheck("String").appendField("Port");this.appendValueInput("SELECTION_MASK").setCheck("Number").appendField("Selection Mask");this.appendValueInput("VALUE_MASK").setCheck("Number").appendField("Value Mask");this.appendValueInput("TIME").setCheck("Number").appendField("and Time");this.appendValueInput("_UID").setCheck("String").appendField("of IO-16 Bricklet");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO16_Bricklet_JavaScript.html#BrickletIO16.setPortMonoflop")}};
Blockly.Blocks.bricklet_io16_get_port_monoflop={init:function(){this.appendDummyInput().appendField("Get Port Monoflop with");this.appendValueInput("PORT").setCheck("String").appendField("Port");this.appendValueInput("PIN").setCheck("Number").appendField("and Pin");this.appendValueInput("_UID").setCheck("String").appendField("of IO-16 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);
this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO16_Bricklet_JavaScript.html#BrickletIO16.getPortMonoflop")}};
Blockly.Blocks.bricklet_io16_set_selected_values={init:function(){this.appendDummyInput().appendField("Set Selected Values to");this.appendValueInput("PORT").setCheck("String").appendField("Port");this.appendValueInput("SELECTION_MASK").setCheck("Number").appendField("Selection Mask");this.appendValueInput("VALUE_MASK").setCheck("Number").appendField("and Value Mask");this.appendValueInput("_UID").setCheck("String").appendField("of IO-16 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO16_Bricklet_JavaScript.html#BrickletIO16.setSelectedValues")}};
Blockly.Blocks.bricklet_io16_get_edge_count={init:function(){this.appendDummyInput().appendField("Get Edge Count with");this.appendValueInput("PIN").setCheck("Number").appendField("Pin");this.appendDummyInput().appendField("and Reset Counter").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"RESET_COUNTER");this.appendValueInput("_UID").setCheck("String").appendField("of IO-16 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO16_Bricklet_JavaScript.html#BrickletIO16.getEdgeCount")}};
Blockly.Blocks.bricklet_io16_set_edge_count_config={init:function(){this.appendDummyInput().appendField("Set Edge Count Config to");this.appendValueInput("PIN").setCheck("Number").appendField("Pin");this.appendDummyInput().appendField("Edge Type").appendField(new Blockly.FieldDropdown([["Rising","0"],["Falling","1"],["Both","2"]]),"EDGE_TYPE");this.appendValueInput("DEBOUNCE").setCheck("Number").appendField("and Debounce");this.appendValueInput("_UID").setCheck("String").appendField("of IO-16 Bricklet");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO16_Bricklet_JavaScript.html#BrickletIO16.setEdgeCountConfig")}};
Blockly.Blocks.bricklet_io16_get_edge_count_config={init:function(){this.appendDummyInput().appendField("Get Edge Count Config with");this.appendValueInput("PIN").setCheck("Number").appendField("Pin");this.appendValueInput("_UID").setCheck("String").appendField("of IO-16 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);
this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO16_Bricklet_JavaScript.html#BrickletIO16.getEdgeCountConfig")}};
Blockly.Blocks.bricklet_io16_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of IO-16 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO16_Bricklet_JavaScript.html#BrickletIO16.getIdentity")}};
Blockly.Blocks.bricklet_io4_set_value={init:function(){this.appendDummyInput().appendField("Set Value to");this.appendValueInput("VALUE_MASK").setCheck("Number").appendField("Value Mask");this.appendValueInput("_UID").setCheck("String").appendField("of IO-4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO4_Bricklet_JavaScript.html#BrickletIO4.setValue")}};
Blockly.Blocks.bricklet_io4_get_value={init:function(){this.appendDummyInput().appendField("Get Value");this.appendValueInput("_UID").setCheck("String").appendField("of IO-4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO4_Bricklet_JavaScript.html#BrickletIO4.getValue")}};
Blockly.Blocks.bricklet_io4_set_configuration={init:function(){this.appendDummyInput().appendField("Set Configuration to");this.appendValueInput("SELECTION_MASK").setCheck("Number").appendField("Selection Mask");this.appendDummyInput().appendField("Direction").appendField(new Blockly.FieldDropdown([["In","i"],["Out","o"]]),"DIRECTION");this.appendDummyInput().appendField("and Value").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"VALUE");this.appendValueInput("_UID").setCheck("String").appendField("of IO-4 Bricklet");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO4_Bricklet_JavaScript.html#BrickletIO4.setConfiguration")}};
Blockly.Blocks.bricklet_io4_get_configuration={init:function(){this.appendDummyInput().appendField("Get Configuration");this.appendValueInput("_UID").setCheck("String").appendField("of IO-4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO4_Bricklet_JavaScript.html#BrickletIO4.getConfiguration")}};
Blockly.Blocks.bricklet_io4_set_monoflop={init:function(){this.appendDummyInput().appendField("Set Monoflop to");this.appendValueInput("SELECTION_MASK").setCheck("Number").appendField("Selection Mask");this.appendValueInput("VALUE_MASK").setCheck("Number").appendField("Value Mask");this.appendValueInput("TIME").setCheck("Number").appendField("and Time");this.appendValueInput("_UID").setCheck("String").appendField("of IO-4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO4_Bricklet_JavaScript.html#BrickletIO4.setMonoflop")}};
Blockly.Blocks.bricklet_io4_get_monoflop={init:function(){this.appendDummyInput().appendField("Get Monoflop with");this.appendValueInput("PIN").setCheck("Number").appendField("Pin");this.appendValueInput("_UID").setCheck("String").appendField("of IO-4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);
this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO4_Bricklet_JavaScript.html#BrickletIO4.getMonoflop")}};
Blockly.Blocks.bricklet_io4_set_selected_values={init:function(){this.appendDummyInput().appendField("Set Selected Values to");this.appendValueInput("SELECTION_MASK").setCheck("Number").appendField("Selection Mask");this.appendValueInput("VALUE_MASK").setCheck("Number").appendField("and Value Mask");this.appendValueInput("_UID").setCheck("String").appendField("of IO-4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO4_Bricklet_JavaScript.html#BrickletIO4.setSelectedValues")}};
Blockly.Blocks.bricklet_io4_get_edge_count={init:function(){this.appendDummyInput().appendField("Get Edge Count with");this.appendValueInput("PIN").setCheck("Number").appendField("Pin");this.appendDummyInput().appendField("and Reset Counter").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"RESET_COUNTER");this.appendValueInput("_UID").setCheck("String").appendField("of IO-4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO4_Bricklet_JavaScript.html#BrickletIO4.getEdgeCount")}};
Blockly.Blocks.bricklet_io4_set_edge_count_config={init:function(){this.appendDummyInput().appendField("Set Edge Count Config to");this.appendValueInput("SELECTION_MASK").setCheck("Number").appendField("Selection Mask");this.appendDummyInput().appendField("Edge Type").appendField(new Blockly.FieldDropdown([["Rising","0"],["Falling","1"],["Both","2"]]),"EDGE_TYPE");this.appendValueInput("DEBOUNCE").setCheck("Number").appendField("and Debounce");this.appendValueInput("_UID").setCheck("String").appendField("of IO-4 Bricklet");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO4_Bricklet_JavaScript.html#BrickletIO4.setEdgeCountConfig")}};
Blockly.Blocks.bricklet_io4_get_edge_count_config={init:function(){this.appendDummyInput().appendField("Get Edge Count Config with");this.appendValueInput("PIN").setCheck("Number").appendField("Pin");this.appendValueInput("_UID").setCheck("String").appendField("of IO-4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);
this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO4_Bricklet_JavaScript.html#BrickletIO4.getEdgeCountConfig")}};
Blockly.Blocks.bricklet_io4_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of IO-4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/IO4_Bricklet_JavaScript.html#BrickletIO4.getIdentity")}};
Blockly.Blocks.bricklet_joystick_get_position={init:function(){this.appendDummyInput().appendField("Get Position");this.appendValueInput("_UID").setCheck("String").appendField("of Joystick Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Joystick_Bricklet_JavaScript.html#BrickletJoystick.getPosition")}};
Blockly.Blocks.bricklet_joystick_is_pressed={init:function(){this.appendDummyInput().appendField("Is Pressed");this.appendValueInput("_UID").setCheck("String").appendField("of Joystick Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Joystick_Bricklet_JavaScript.html#BrickletJoystick.isPressed")}};
Blockly.Blocks.bricklet_joystick_get_analog_value={init:function(){this.appendDummyInput().appendField("Get Analog Value");this.appendValueInput("_UID").setCheck("String").appendField("of Joystick Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Joystick_Bricklet_JavaScript.html#BrickletJoystick.getAnalogValue")}};
Blockly.Blocks.bricklet_joystick_calibrate={init:function(){this.appendDummyInput().appendField("Calibrate");this.appendValueInput("_UID").setCheck("String").appendField("of Joystick Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Joystick_Bricklet_JavaScript.html#BrickletJoystick.calibrate")}};
Blockly.Blocks.bricklet_joystick_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Joystick Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Joystick_Bricklet_JavaScript.html#BrickletJoystick.getIdentity")}};
Blockly.Blocks.bricklet_laser_range_finder_get_distance={init:function(){this.appendDummyInput().appendField("Get Distance");this.appendValueInput("_UID").setCheck("String").appendField("of Laser Range Finder Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LaserRangeFinder_Bricklet_JavaScript.html#BrickletLaserRangeFinder.getDistance")}};
Blockly.Blocks.bricklet_laser_range_finder_get_velocity={init:function(){this.appendDummyInput().appendField("Get Velocity");this.appendValueInput("_UID").setCheck("String").appendField("of Laser Range Finder Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LaserRangeFinder_Bricklet_JavaScript.html#BrickletLaserRangeFinder.getVelocity")}};
Blockly.Blocks.bricklet_laser_range_finder_set_moving_average={init:function(){this.appendDummyInput().appendField("Set Moving Average to");this.appendValueInput("DISTANCE_AVERAGE_LENGTH").setCheck("Number").appendField("Distance Average Length");this.appendValueInput("VELOCITY_AVERAGE_LENGTH").setCheck("Number").appendField("and Velocity Average Length");this.appendValueInput("_UID").setCheck("String").appendField("of Laser Range Finder Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LaserRangeFinder_Bricklet_JavaScript.html#BrickletLaserRangeFinder.setMovingAverage")}};
Blockly.Blocks.bricklet_laser_range_finder_get_moving_average={init:function(){this.appendDummyInput().appendField("Get Moving Average");this.appendValueInput("_UID").setCheck("String").appendField("of Laser Range Finder Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LaserRangeFinder_Bricklet_JavaScript.html#BrickletLaserRangeFinder.getMovingAverage")}};
Blockly.Blocks.bricklet_laser_range_finder_set_mode={init:function(){this.appendDummyInput().appendField("Set Mode to");this.appendDummyInput().appendField("Mode").appendField(new Blockly.FieldDropdown([["Distance","0"],["Velocity Max 13ms","1"],["Velocity Max 32ms","2"],["Velocity Max 64ms","3"],["Velocity Max 127ms","4"]]),"MODE");this.appendValueInput("_UID").setCheck("String").appendField("of Laser Range Finder Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LaserRangeFinder_Bricklet_JavaScript.html#BrickletLaserRangeFinder.setMode")}};
Blockly.Blocks.bricklet_laser_range_finder_get_mode={init:function(){this.appendDummyInput().appendField("Get Mode");this.appendValueInput("_UID").setCheck("String").appendField("of Laser Range Finder Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LaserRangeFinder_Bricklet_JavaScript.html#BrickletLaserRangeFinder.getMode")}};
Blockly.Blocks.bricklet_laser_range_finder_enable_laser={init:function(){this.appendDummyInput().appendField("Enable Laser");this.appendValueInput("_UID").setCheck("String").appendField("of Laser Range Finder Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LaserRangeFinder_Bricklet_JavaScript.html#BrickletLaserRangeFinder.enableLaser")}};
Blockly.Blocks.bricklet_laser_range_finder_disable_laser={init:function(){this.appendDummyInput().appendField("Disable Laser");this.appendValueInput("_UID").setCheck("String").appendField("of Laser Range Finder Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LaserRangeFinder_Bricklet_JavaScript.html#BrickletLaserRangeFinder.disableLaser")}};
Blockly.Blocks.bricklet_laser_range_finder_is_laser_enabled={init:function(){this.appendDummyInput().appendField("Is Laser Enabled");this.appendValueInput("_UID").setCheck("String").appendField("of Laser Range Finder Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LaserRangeFinder_Bricklet_JavaScript.html#BrickletLaserRangeFinder.isLaserEnabled")}};
Blockly.Blocks.bricklet_laser_range_finder_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Laser Range Finder Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LaserRangeFinder_Bricklet_JavaScript.html#BrickletLaserRangeFinder.getIdentity")}};
Blockly.Blocks.bricklet_lcd_16x2_write_line={init:function(){this.appendDummyInput().appendField("Write Line to");this.appendValueInput("LINE").setCheck("Number").appendField("Line");this.appendValueInput("POSITION").setCheck("Number").appendField("Position");this.appendValueInput("TEXT").setCheck("String").appendField("and Text");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 16x2 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD16x2_Bricklet_JavaScript.html#BrickletLCD16x2.writeLine")}};
Blockly.Blocks.bricklet_lcd_16x2_clear_display={init:function(){this.appendDummyInput().appendField("Clear Display");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 16x2 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD16x2_Bricklet_JavaScript.html#BrickletLCD16x2.clearDisplay")}};
Blockly.Blocks.bricklet_lcd_16x2_backlight_on={init:function(){this.appendDummyInput().appendField("Backlight On");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 16x2 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD16x2_Bricklet_JavaScript.html#BrickletLCD16x2.backlightOn")}};
Blockly.Blocks.bricklet_lcd_16x2_backlight_off={init:function(){this.appendDummyInput().appendField("Backlight Off");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 16x2 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD16x2_Bricklet_JavaScript.html#BrickletLCD16x2.backlightOff")}};
Blockly.Blocks.bricklet_lcd_16x2_is_backlight_on={init:function(){this.appendDummyInput().appendField("Is Backlight On");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 16x2 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD16x2_Bricklet_JavaScript.html#BrickletLCD16x2.isBacklightOn")}};
Blockly.Blocks.bricklet_lcd_16x2_set_config={init:function(){this.appendDummyInput().appendField("Set Config to");this.appendDummyInput().appendField("Cursor").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"CURSOR");this.appendDummyInput().appendField("and Blinking").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"BLINKING");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 16x2 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD16x2_Bricklet_JavaScript.html#BrickletLCD16x2.setConfig")}};
Blockly.Blocks.bricklet_lcd_16x2_get_config={init:function(){this.appendDummyInput().appendField("Get Config");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 16x2 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD16x2_Bricklet_JavaScript.html#BrickletLCD16x2.getConfig")}};
Blockly.Blocks.bricklet_lcd_16x2_is_button_pressed={init:function(){this.appendDummyInput().appendField("Is Button Pressed with");this.appendValueInput("BUTTON").setCheck("Number").appendField("Button");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 16x2 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD16x2_Bricklet_JavaScript.html#BrickletLCD16x2.isButtonPressed")}};
Blockly.Blocks.bricklet_lcd_16x2_set_custom_character={init:function(){this.appendDummyInput().appendField("Set Custom Character to");this.appendValueInput("INDEX").setCheck("Number").appendField("Index");this.appendValueInput("CHARACTER").setCheck("Number").appendField("and Character");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 16x2 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD16x2_Bricklet_JavaScript.html#BrickletLCD16x2.setCustomCharacter")}};
Blockly.Blocks.bricklet_lcd_16x2_get_custom_character={init:function(){this.appendDummyInput().appendField("Get Custom Character with");this.appendValueInput("INDEX").setCheck("Number").appendField("Index");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 16x2 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD16x2_Bricklet_JavaScript.html#BrickletLCD16x2.getCustomCharacter")}};
Blockly.Blocks.bricklet_lcd_16x2_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 16x2 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD16x2_Bricklet_JavaScript.html#BrickletLCD16x2.getIdentity")}};
Blockly.Blocks.bricklet_lcd_20x4_write_line={init:function(){this.appendDummyInput().appendField("Write Line to");this.appendValueInput("LINE").setCheck("Number").appendField("Line");this.appendValueInput("POSITION").setCheck("Number").appendField("Position");this.appendValueInput("TEXT").setCheck("String").appendField("and Text");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 20x4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD20x4_Bricklet_JavaScript.html#BrickletLCD20x4.writeLine")}};
Blockly.Blocks.bricklet_lcd_20x4_clear_display={init:function(){this.appendDummyInput().appendField("Clear Display");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 20x4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD20x4_Bricklet_JavaScript.html#BrickletLCD20x4.clearDisplay")}};
Blockly.Blocks.bricklet_lcd_20x4_backlight_on={init:function(){this.appendDummyInput().appendField("Backlight On");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 20x4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD20x4_Bricklet_JavaScript.html#BrickletLCD20x4.backlightOn")}};
Blockly.Blocks.bricklet_lcd_20x4_backlight_off={init:function(){this.appendDummyInput().appendField("Backlight Off");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 20x4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD20x4_Bricklet_JavaScript.html#BrickletLCD20x4.backlightOff")}};
Blockly.Blocks.bricklet_lcd_20x4_is_backlight_on={init:function(){this.appendDummyInput().appendField("Is Backlight On");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 20x4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD20x4_Bricklet_JavaScript.html#BrickletLCD20x4.isBacklightOn")}};
Blockly.Blocks.bricklet_lcd_20x4_set_config={init:function(){this.appendDummyInput().appendField("Set Config to");this.appendDummyInput().appendField("Cursor").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"CURSOR");this.appendDummyInput().appendField("and Blinking").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"BLINKING");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 20x4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD20x4_Bricklet_JavaScript.html#BrickletLCD20x4.setConfig")}};
Blockly.Blocks.bricklet_lcd_20x4_get_config={init:function(){this.appendDummyInput().appendField("Get Config");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 20x4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD20x4_Bricklet_JavaScript.html#BrickletLCD20x4.getConfig")}};
Blockly.Blocks.bricklet_lcd_20x4_is_button_pressed={init:function(){this.appendDummyInput().appendField("Is Button Pressed with");this.appendValueInput("BUTTON").setCheck("Number").appendField("Button");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 20x4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD20x4_Bricklet_JavaScript.html#BrickletLCD20x4.isButtonPressed")}};
Blockly.Blocks.bricklet_lcd_20x4_set_custom_character={init:function(){this.appendDummyInput().appendField("Set Custom Character to");this.appendValueInput("INDEX").setCheck("Number").appendField("Index");this.appendValueInput("CHARACTER").setCheck("Number").appendField("and Character");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 20x4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD20x4_Bricklet_JavaScript.html#BrickletLCD20x4.setCustomCharacter")}};
Blockly.Blocks.bricklet_lcd_20x4_get_custom_character={init:function(){this.appendDummyInput().appendField("Get Custom Character with");this.appendValueInput("INDEX").setCheck("Number").appendField("Index");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 20x4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);
this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD20x4_Bricklet_JavaScript.html#BrickletLCD20x4.getCustomCharacter")}};
Blockly.Blocks.bricklet_lcd_20x4_set_default_text={init:function(){this.appendDummyInput().appendField("Set Default Text to");this.appendValueInput("LINE").setCheck("Number").appendField("Line");this.appendValueInput("TEXT").setCheck("String").appendField("and Text");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 20x4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);
this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD20x4_Bricklet_JavaScript.html#BrickletLCD20x4.setDefaultText")}};
Blockly.Blocks.bricklet_lcd_20x4_get_default_text={init:function(){this.appendDummyInput().appendField("Get Default Text with");this.appendValueInput("LINE").setCheck("Number").appendField("Line");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 20x4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"String");this.setPreviousStatement(!1);this.setNextStatement(!1);
this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD20x4_Bricklet_JavaScript.html#BrickletLCD20x4.getDefaultText")}};
Blockly.Blocks.bricklet_lcd_20x4_set_default_text_counter={init:function(){this.appendDummyInput().appendField("Set Default Text Counter to");this.appendValueInput("COUNTER").setCheck("Number").appendField("Counter");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 20x4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD20x4_Bricklet_JavaScript.html#BrickletLCD20x4.setDefaultTextCounter")}};
Blockly.Blocks.bricklet_lcd_20x4_get_default_text_counter={init:function(){this.appendDummyInput().appendField("Get Default Text Counter");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 20x4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD20x4_Bricklet_JavaScript.html#BrickletLCD20x4.getDefaultTextCounter")}};
Blockly.Blocks.bricklet_lcd_20x4_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of LCD 20x4 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LCD20x4_Bricklet_JavaScript.html#BrickletLCD20x4.getIdentity")}};
Blockly.Blocks.bricklet_led_strip_set_rgb_values={init:function(){this.appendDummyInput().appendField("Set RGB Values to");this.appendValueInput("INDEX").setCheck("Number").appendField("Index");this.appendValueInput("LENGTH").setCheck("Number").appendField("Length");this.appendValueInput("R").setCheck("Number").appendField("R");this.appendValueInput("G").setCheck("Number").appendField("G");this.appendValueInput("B").setCheck("Number").appendField("and B");this.appendValueInput("_UID").setCheck("String").appendField("of LED Strip Bricklet");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LEDStrip_Bricklet_JavaScript.html#BrickletLEDStrip.setRGBValues")}};
Blockly.Blocks.bricklet_led_strip_get_rgb_values={init:function(){this.appendDummyInput().appendField("Get RGB Values with");this.appendValueInput("INDEX").setCheck("Number").appendField("Index");this.appendValueInput("LENGTH").setCheck("Number").appendField("and Length");this.appendValueInput("_UID").setCheck("String").appendField("of LED Strip Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);
this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LEDStrip_Bricklet_JavaScript.html#BrickletLEDStrip.getRGBValues")}};
Blockly.Blocks.bricklet_led_strip_set_frame_duration={init:function(){this.appendDummyInput().appendField("Set Frame Duration to");this.appendValueInput("DURATION").setCheck("Number").appendField("Duration");this.appendValueInput("_UID").setCheck("String").appendField("of LED Strip Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LEDStrip_Bricklet_JavaScript.html#BrickletLEDStrip.setFrameDuration")}};
Blockly.Blocks.bricklet_led_strip_get_frame_duration={init:function(){this.appendDummyInput().appendField("Get Frame Duration");this.appendValueInput("_UID").setCheck("String").appendField("of LED Strip Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LEDStrip_Bricklet_JavaScript.html#BrickletLEDStrip.getFrameDuration")}};
Blockly.Blocks.bricklet_led_strip_get_supply_voltage={init:function(){this.appendDummyInput().appendField("Get Supply Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of LED Strip Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LEDStrip_Bricklet_JavaScript.html#BrickletLEDStrip.getSupplyVoltage")}};
Blockly.Blocks.bricklet_led_strip_set_clock_frequency={init:function(){this.appendDummyInput().appendField("Set Clock Frequency to");this.appendValueInput("FREQUENCY").setCheck("Number").appendField("Frequency");this.appendValueInput("_UID").setCheck("String").appendField("of LED Strip Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LEDStrip_Bricklet_JavaScript.html#BrickletLEDStrip.setClockFrequency")}};
Blockly.Blocks.bricklet_led_strip_get_clock_frequency={init:function(){this.appendDummyInput().appendField("Get Clock Frequency");this.appendValueInput("_UID").setCheck("String").appendField("of LED Strip Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LEDStrip_Bricklet_JavaScript.html#BrickletLEDStrip.getClockFrequency")}};
Blockly.Blocks.bricklet_led_strip_set_chip_type={init:function(){this.appendDummyInput().appendField("Set Chip Type to");this.appendDummyInput().appendField("Chip").appendField(new Blockly.FieldDropdown([["WS2801","2801"],["WS2811","2811"],["WS2812","2812"]]),"CHIP");this.appendValueInput("_UID").setCheck("String").appendField("of LED Strip Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);
this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LEDStrip_Bricklet_JavaScript.html#BrickletLEDStrip.setChipType")}};
Blockly.Blocks.bricklet_led_strip_get_chip_type={init:function(){this.appendDummyInput().appendField("Get Chip Type");this.appendValueInput("_UID").setCheck("String").appendField("of LED Strip Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LEDStrip_Bricklet_JavaScript.html#BrickletLEDStrip.getChipType")}};
Blockly.Blocks.bricklet_led_strip_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of LED Strip Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LEDStrip_Bricklet_JavaScript.html#BrickletLEDStrip.getIdentity")}};
Blockly.Blocks.bricklet_line_get_reflectivity={init:function(){this.appendDummyInput().appendField("Get Reflectivity");this.appendValueInput("_UID").setCheck("String").appendField("of Line Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Line_Bricklet_JavaScript.html#BrickletLine.getReflectivity")}};
Blockly.Blocks.bricklet_line_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Line Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Line_Bricklet_JavaScript.html#BrickletLine.getIdentity")}};
Blockly.Blocks.bricklet_linear_poti_get_position={init:function(){this.appendDummyInput().appendField("Get Position");this.appendValueInput("_UID").setCheck("String").appendField("of Linear Poti Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LinearPoti_Bricklet_JavaScript.html#BrickletLinearPoti.getPosition")}};
Blockly.Blocks.bricklet_linear_poti_get_analog_value={init:function(){this.appendDummyInput().appendField("Get Analog Value");this.appendValueInput("_UID").setCheck("String").appendField("of Linear Poti Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LinearPoti_Bricklet_JavaScript.html#BrickletLinearPoti.getAnalogValue")}};
Blockly.Blocks.bricklet_linear_poti_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Linear Poti Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LinearPoti_Bricklet_JavaScript.html#BrickletLinearPoti.getIdentity")}};
Blockly.Blocks.bricklet_load_cell_get_weight={init:function(){this.appendDummyInput().appendField("Get Weight");this.appendValueInput("_UID").setCheck("String").appendField("of Load Cell Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LoadCell_Bricklet_JavaScript.html#BrickletLoadCell.getWeight")}};
Blockly.Blocks.bricklet_load_cell_set_moving_average={init:function(){this.appendDummyInput().appendField("Set Moving Average to");this.appendValueInput("AVERAGE").setCheck("Number").appendField("Average");this.appendValueInput("_UID").setCheck("String").appendField("of Load Cell Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LoadCell_Bricklet_JavaScript.html#BrickletLoadCell.setMovingAverage")}};
Blockly.Blocks.bricklet_load_cell_get_moving_average={init:function(){this.appendDummyInput().appendField("Get Moving Average");this.appendValueInput("_UID").setCheck("String").appendField("of Load Cell Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LoadCell_Bricklet_JavaScript.html#BrickletLoadCell.getMovingAverage")}};
Blockly.Blocks.bricklet_load_cell_led_on={init:function(){this.appendDummyInput().appendField("LED On");this.appendValueInput("_UID").setCheck("String").appendField("of Load Cell Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LoadCell_Bricklet_JavaScript.html#BrickletLoadCell.ledOn")}};
Blockly.Blocks.bricklet_load_cell_led_off={init:function(){this.appendDummyInput().appendField("LED Off");this.appendValueInput("_UID").setCheck("String").appendField("of Load Cell Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LoadCell_Bricklet_JavaScript.html#BrickletLoadCell.ledOff")}};
Blockly.Blocks.bricklet_load_cell_is_led_on={init:function(){this.appendDummyInput().appendField("Is LED On");this.appendValueInput("_UID").setCheck("String").appendField("of Load Cell Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LoadCell_Bricklet_JavaScript.html#BrickletLoadCell.isLEDOn")}};
Blockly.Blocks.bricklet_load_cell_calibrate={init:function(){this.appendDummyInput().appendField("Calibrate to");this.appendValueInput("WEIGHT").setCheck("Number").appendField("Weight");this.appendValueInput("_UID").setCheck("String").appendField("of Load Cell Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LoadCell_Bricklet_JavaScript.html#BrickletLoadCell.calibrate")}};
Blockly.Blocks.bricklet_load_cell_tare={init:function(){this.appendDummyInput().appendField("Tare");this.appendValueInput("_UID").setCheck("String").appendField("of Load Cell Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LoadCell_Bricklet_JavaScript.html#BrickletLoadCell.tare")}};
Blockly.Blocks.bricklet_load_cell_set_configuration={init:function(){this.appendDummyInput().appendField("Set Configuration to");this.appendDummyInput().appendField("Rate").appendField(new Blockly.FieldDropdown([["10Hz","0"],["80Hz","1"]]),"RATE");this.appendDummyInput().appendField("and Gain").appendField(new Blockly.FieldDropdown([["128x","0"],["64x","1"],["32x","2"]]),"GAIN");this.appendValueInput("_UID").setCheck("String").appendField("of Load Cell Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LoadCell_Bricklet_JavaScript.html#BrickletLoadCell.setConfiguration")}};
Blockly.Blocks.bricklet_load_cell_get_configuration={init:function(){this.appendDummyInput().appendField("Get Configuration");this.appendValueInput("_UID").setCheck("String").appendField("of Load Cell Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LoadCell_Bricklet_JavaScript.html#BrickletLoadCell.getConfiguration")}};
Blockly.Blocks.bricklet_load_cell_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Load Cell Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/LoadCell_Bricklet_JavaScript.html#BrickletLoadCell.getIdentity")}};
Blockly.Blocks.bricklet_moisture_get_moisture_value={init:function(){this.appendDummyInput().appendField("Get Moisture Value");this.appendValueInput("_UID").setCheck("String").appendField("of Moisture Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Moisture_Bricklet_JavaScript.html#BrickletMoisture.getMoistureValue")}};
Blockly.Blocks.bricklet_moisture_set_moving_average={init:function(){this.appendDummyInput().appendField("Set Moving Average to");this.appendValueInput("AVERAGE").setCheck("Number").appendField("Average");this.appendValueInput("_UID").setCheck("String").appendField("of Moisture Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Moisture_Bricklet_JavaScript.html#BrickletMoisture.setMovingAverage")}};
Blockly.Blocks.bricklet_moisture_get_moving_average={init:function(){this.appendDummyInput().appendField("Get Moving Average");this.appendValueInput("_UID").setCheck("String").appendField("of Moisture Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Moisture_Bricklet_JavaScript.html#BrickletMoisture.getMovingAverage")}};
Blockly.Blocks.bricklet_moisture_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Moisture Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Moisture_Bricklet_JavaScript.html#BrickletMoisture.getIdentity")}};
Blockly.Blocks.bricklet_motion_detector_get_motion_detected={init:function(){this.appendDummyInput().appendField("Get Motion Detected");this.appendValueInput("_UID").setCheck("String").appendField("of Motion Detector Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/MotionDetector_Bricklet_JavaScript.html#BrickletMotionDetector.getMotionDetected")}};
Blockly.Blocks.bricklet_motion_detector_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Motion Detector Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/MotionDetector_Bricklet_JavaScript.html#BrickletMotionDetector.getIdentity")}};
Blockly.Blocks.bricklet_multi_touch_get_touch_state={init:function(){this.appendDummyInput().appendField("Get Touch State");this.appendValueInput("_UID").setCheck("String").appendField("of Multi Touch Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/MultiTouch_Bricklet_JavaScript.html#BrickletMultiTouch.getTouchState")}};
Blockly.Blocks.bricklet_multi_touch_recalibrate={init:function(){this.appendDummyInput().appendField("Recalibrate");this.appendValueInput("_UID").setCheck("String").appendField("of Multi Touch Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/MultiTouch_Bricklet_JavaScript.html#BrickletMultiTouch.recalibrate")}};
Blockly.Blocks.bricklet_multi_touch_set_electrode_config={init:function(){this.appendDummyInput().appendField("Set Electrode Config to");this.appendValueInput("ENABLED_ELECTRODES").setCheck("Number").appendField("Enabled Electrodes");this.appendValueInput("_UID").setCheck("String").appendField("of Multi Touch Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);
this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/MultiTouch_Bricklet_JavaScript.html#BrickletMultiTouch.setElectrodeConfig")}};
Blockly.Blocks.bricklet_multi_touch_get_electrode_config={init:function(){this.appendDummyInput().appendField("Get Electrode Config");this.appendValueInput("_UID").setCheck("String").appendField("of Multi Touch Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/MultiTouch_Bricklet_JavaScript.html#BrickletMultiTouch.getElectrodeConfig")}};
Blockly.Blocks.bricklet_multi_touch_set_electrode_sensitivity={init:function(){this.appendDummyInput().appendField("Set Electrode Sensitivity to");this.appendValueInput("SENSITIVITY").setCheck("Number").appendField("Sensitivity");this.appendValueInput("_UID").setCheck("String").appendField("of Multi Touch Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/MultiTouch_Bricklet_JavaScript.html#BrickletMultiTouch.setElectrodeSensitivity")}};
Blockly.Blocks.bricklet_multi_touch_get_electrode_sensitivity={init:function(){this.appendDummyInput().appendField("Get Electrode Sensitivity");this.appendValueInput("_UID").setCheck("String").appendField("of Multi Touch Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/MultiTouch_Bricklet_JavaScript.html#BrickletMultiTouch.getElectrodeSensitivity")}};
Blockly.Blocks.bricklet_multi_touch_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Multi Touch Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/MultiTouch_Bricklet_JavaScript.html#BrickletMultiTouch.getIdentity")}};
Blockly.Blocks.bricklet_nfc_rfid_request_tag_id={init:function(){this.appendDummyInput().appendField("Request Tag ID to");this.appendDummyInput().appendField("Tag Type").appendField(new Blockly.FieldDropdown([["Mifare Classic","0"],["Type1","1"],["Type2","2"]]),"TAG_TYPE");this.appendValueInput("_UID").setCheck("String").appendField("of NFC/RFID Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);
this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/NFCRFID_Bricklet_JavaScript.html#BrickletNFCRFID.requestTagID")}};
Blockly.Blocks.bricklet_nfc_rfid_get_tag_id={init:function(){this.appendDummyInput().appendField("Get Tag ID");this.appendValueInput("_UID").setCheck("String").appendField("of NFC/RFID Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/NFCRFID_Bricklet_JavaScript.html#BrickletNFCRFID.getTagID")}};
Blockly.Blocks.bricklet_nfc_rfid_get_state={init:function(){this.appendDummyInput().appendField("Get State");this.appendValueInput("_UID").setCheck("String").appendField("of NFC/RFID Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/NFCRFID_Bricklet_JavaScript.html#BrickletNFCRFID.getState")}};
Blockly.Blocks.bricklet_nfc_rfid_authenticate_mifare_classic_page={init:function(){this.appendDummyInput().appendField("Authenticate Mifare Classic Page to");this.appendValueInput("PAGE").setCheck("Number").appendField("Page");this.appendDummyInput().appendField("Key Number").appendField(new Blockly.FieldDropdown([["A","0"],["B","1"]]),"KEY_NUMBER");this.appendValueInput("KEY").setCheck("Number").appendField("and Key");this.appendValueInput("_UID").setCheck("String").appendField("of NFC/RFID Bricklet");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/NFCRFID_Bricklet_JavaScript.html#BrickletNFCRFID.authenticateMifareClassicPage")}};
Blockly.Blocks.bricklet_nfc_rfid_write_page={init:function(){this.appendDummyInput().appendField("Write Page to");this.appendValueInput("PAGE").setCheck("Number").appendField("Page");this.appendValueInput("DATA").setCheck("Number").appendField("and Data");this.appendValueInput("_UID").setCheck("String").appendField("of NFC/RFID Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);
this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/NFCRFID_Bricklet_JavaScript.html#BrickletNFCRFID.writePage")}};
Blockly.Blocks.bricklet_nfc_rfid_request_page={init:function(){this.appendDummyInput().appendField("Request Page to");this.appendValueInput("PAGE").setCheck("Number").appendField("Page");this.appendValueInput("_UID").setCheck("String").appendField("of NFC/RFID Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/NFCRFID_Bricklet_JavaScript.html#BrickletNFCRFID.requestPage")}};
Blockly.Blocks.bricklet_nfc_rfid_get_page={init:function(){this.appendDummyInput().appendField("Get Page");this.appendValueInput("_UID").setCheck("String").appendField("of NFC/RFID Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/NFCRFID_Bricklet_JavaScript.html#BrickletNFCRFID.getPage")}};
Blockly.Blocks.bricklet_nfc_rfid_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of NFC/RFID Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/NFCRFID_Bricklet_JavaScript.html#BrickletNFCRFID.getIdentity")}};
Blockly.Blocks.bricklet_oled_128x64_write={init:function(){this.appendDummyInput().appendField("Write to");this.appendValueInput("DATA").setCheck("Number").appendField("Data");this.appendValueInput("_UID").setCheck("String").appendField("of OLED 128x64 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);
this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/OLED128x64_Bricklet_JavaScript.html#BrickletOLED128x64.write")}};
Blockly.Blocks.bricklet_oled_128x64_new_window={init:function(){this.appendDummyInput().appendField("New Window to");this.appendValueInput("COLUMN_FROM").setCheck("Number").appendField("Column From");this.appendValueInput("COLUMN_TO").setCheck("Number").appendField("Column To");this.appendValueInput("ROW_FROM").setCheck("Number").appendField("Row From");this.appendValueInput("ROW_TO").setCheck("Number").appendField("and Row To");this.appendValueInput("_UID").setCheck("String").appendField("of OLED 128x64 Bricklet");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/OLED128x64_Bricklet_JavaScript.html#BrickletOLED128x64.newWindow")}};
Blockly.Blocks.bricklet_oled_128x64_clear_display={init:function(){this.appendDummyInput().appendField("Clear Display");this.appendValueInput("_UID").setCheck("String").appendField("of OLED 128x64 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/OLED128x64_Bricklet_JavaScript.html#BrickletOLED128x64.clearDisplay")}};
Blockly.Blocks.bricklet_oled_128x64_set_display_configuration={init:function(){this.appendDummyInput().appendField("Set Display Configuration to");this.appendValueInput("CONTRAST").setCheck("Number").appendField("Contrast");this.appendDummyInput().appendField("and Invert").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"INVERT");this.appendValueInput("_UID").setCheck("String").appendField("of OLED 128x64 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/OLED128x64_Bricklet_JavaScript.html#BrickletOLED128x64.setDisplayConfiguration")}};
Blockly.Blocks.bricklet_oled_128x64_get_display_configuration={init:function(){this.appendDummyInput().appendField("Get Display Configuration");this.appendValueInput("_UID").setCheck("String").appendField("of OLED 128x64 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/OLED128x64_Bricklet_JavaScript.html#BrickletOLED128x64.getDisplayConfiguration")}};
Blockly.Blocks.bricklet_oled_128x64_write_line={init:function(){this.appendDummyInput().appendField("Write Line to");this.appendValueInput("LINE").setCheck("Number").appendField("Line");this.appendValueInput("POSITION").setCheck("Number").appendField("Position");this.appendValueInput("TEXT").setCheck("String").appendField("and Text");this.appendValueInput("_UID").setCheck("String").appendField("of OLED 128x64 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/OLED128x64_Bricklet_JavaScript.html#BrickletOLED128x64.writeLine")}};
Blockly.Blocks.bricklet_oled_128x64_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of OLED 128x64 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/OLED128x64_Bricklet_JavaScript.html#BrickletOLED128x64.getIdentity")}};
Blockly.Blocks.bricklet_oled_64x48_write={init:function(){this.appendDummyInput().appendField("Write to");this.appendValueInput("DATA").setCheck("Number").appendField("Data");this.appendValueInput("_UID").setCheck("String").appendField("of OLED 64x48 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);
this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/OLED64x48_Bricklet_JavaScript.html#BrickletOLED64x48.write")}};
Blockly.Blocks.bricklet_oled_64x48_new_window={init:function(){this.appendDummyInput().appendField("New Window to");this.appendValueInput("COLUMN_FROM").setCheck("Number").appendField("Column From");this.appendValueInput("COLUMN_TO").setCheck("Number").appendField("Column To");this.appendValueInput("ROW_FROM").setCheck("Number").appendField("Row From");this.appendValueInput("ROW_TO").setCheck("Number").appendField("and Row To");this.appendValueInput("_UID").setCheck("String").appendField("of OLED 64x48 Bricklet");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/OLED64x48_Bricklet_JavaScript.html#BrickletOLED64x48.newWindow")}};
Blockly.Blocks.bricklet_oled_64x48_clear_display={init:function(){this.appendDummyInput().appendField("Clear Display");this.appendValueInput("_UID").setCheck("String").appendField("of OLED 64x48 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/OLED64x48_Bricklet_JavaScript.html#BrickletOLED64x48.clearDisplay")}};
Blockly.Blocks.bricklet_oled_64x48_set_display_configuration={init:function(){this.appendDummyInput().appendField("Set Display Configuration to");this.appendValueInput("CONTRAST").setCheck("Number").appendField("Contrast");this.appendDummyInput().appendField("and Invert").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"INVERT");this.appendValueInput("_UID").setCheck("String").appendField("of OLED 64x48 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/OLED64x48_Bricklet_JavaScript.html#BrickletOLED64x48.setDisplayConfiguration")}};
Blockly.Blocks.bricklet_oled_64x48_get_display_configuration={init:function(){this.appendDummyInput().appendField("Get Display Configuration");this.appendValueInput("_UID").setCheck("String").appendField("of OLED 64x48 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/OLED64x48_Bricklet_JavaScript.html#BrickletOLED64x48.getDisplayConfiguration")}};
Blockly.Blocks.bricklet_oled_64x48_write_line={init:function(){this.appendDummyInput().appendField("Write Line to");this.appendValueInput("LINE").setCheck("Number").appendField("Line");this.appendValueInput("POSITION").setCheck("Number").appendField("Position");this.appendValueInput("TEXT").setCheck("String").appendField("and Text");this.appendValueInput("_UID").setCheck("String").appendField("of OLED 64x48 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/OLED64x48_Bricklet_JavaScript.html#BrickletOLED64x48.writeLine")}};
Blockly.Blocks.bricklet_oled_64x48_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of OLED 64x48 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/OLED64x48_Bricklet_JavaScript.html#BrickletOLED64x48.getIdentity")}};
Blockly.Blocks.bricklet_piezo_buzzer_beep={init:function(){this.appendDummyInput().appendField("Beep to");this.appendValueInput("DURATION").setCheck("Number").appendField("Duration");this.appendValueInput("_UID").setCheck("String").appendField("of Piezo Buzzer Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/PiezoBuzzer_Bricklet_JavaScript.html#BrickletPiezoBuzzer.beep")}};
Blockly.Blocks.bricklet_piezo_buzzer_morse_code={init:function(){this.appendDummyInput().appendField("Morse Code to");this.appendValueInput("MORSE").setCheck("String").appendField("Morse");this.appendValueInput("_UID").setCheck("String").appendField("of Piezo Buzzer Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/PiezoBuzzer_Bricklet_JavaScript.html#BrickletPiezoBuzzer.morseCode")}};
Blockly.Blocks.bricklet_piezo_buzzer_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Piezo Buzzer Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/PiezoBuzzer_Bricklet_JavaScript.html#BrickletPiezoBuzzer.getIdentity")}};
Blockly.Blocks.bricklet_piezo_speaker_beep={init:function(){this.appendDummyInput().appendField("Beep to");this.appendDummyInput().appendField("Duration").appendField(new Blockly.FieldDropdown([["Off","0"],["Infinite","4294967295"]]),"DURATION");this.appendValueInput("FREQUENCY").setCheck("Number").appendField("and Frequency");this.appendValueInput("_UID").setCheck("String").appendField("of Piezo Speaker Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/PiezoSpeaker_Bricklet_JavaScript.html#BrickletPiezoSpeaker.beep")}};
Blockly.Blocks.bricklet_piezo_speaker_morse_code={init:function(){this.appendDummyInput().appendField("Morse Code to");this.appendValueInput("MORSE").setCheck("String").appendField("Morse");this.appendValueInput("FREQUENCY").setCheck("Number").appendField("and Frequency");this.appendValueInput("_UID").setCheck("String").appendField("of Piezo Speaker Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);
this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/PiezoSpeaker_Bricklet_JavaScript.html#BrickletPiezoSpeaker.morseCode")}};
Blockly.Blocks.bricklet_piezo_speaker_calibrate={init:function(){this.appendDummyInput().appendField("Calibrate");this.appendValueInput("_UID").setCheck("String").appendField("of Piezo Speaker Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/PiezoSpeaker_Bricklet_JavaScript.html#BrickletPiezoSpeaker.calibrate")}};
Blockly.Blocks.bricklet_piezo_speaker_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Piezo Speaker Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/PiezoSpeaker_Bricklet_JavaScript.html#BrickletPiezoSpeaker.getIdentity")}};
Blockly.Blocks.bricklet_ptc_get_temperature={init:function(){this.appendDummyInput().appendField("Get Temperature");this.appendValueInput("_UID").setCheck("String").appendField("of PTC Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/PTC_Bricklet_JavaScript.html#BrickletPTC.getTemperature")}};
Blockly.Blocks.bricklet_ptc_get_resistance={init:function(){this.appendDummyInput().appendField("Get Resistance");this.appendValueInput("_UID").setCheck("String").appendField("of PTC Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/PTC_Bricklet_JavaScript.html#BrickletPTC.getResistance")}};
Blockly.Blocks.bricklet_ptc_set_noise_rejection_filter={init:function(){this.appendDummyInput().appendField("Set Noise Rejection Filter to");this.appendDummyInput().appendField("Filter").appendField(new Blockly.FieldDropdown([["50Hz","0"],["60Hz","1"]]),"FILTER");this.appendValueInput("_UID").setCheck("String").appendField("of PTC Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);
this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/PTC_Bricklet_JavaScript.html#BrickletPTC.setNoiseRejectionFilter")}};
Blockly.Blocks.bricklet_ptc_get_noise_rejection_filter={init:function(){this.appendDummyInput().appendField("Get Noise Rejection Filter");this.appendValueInput("_UID").setCheck("String").appendField("of PTC Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/PTC_Bricklet_JavaScript.html#BrickletPTC.getNoiseRejectionFilter")}};
Blockly.Blocks.bricklet_ptc_is_sensor_connected={init:function(){this.appendDummyInput().appendField("Is Sensor Connected");this.appendValueInput("_UID").setCheck("String").appendField("of PTC Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/PTC_Bricklet_JavaScript.html#BrickletPTC.isSensorConnected")}};
Blockly.Blocks.bricklet_ptc_set_wire_mode={init:function(){this.appendDummyInput().appendField("Set Wire Mode to");this.appendDummyInput().appendField("Mode").appendField(new Blockly.FieldDropdown([["2","2"],["3","3"],["4","4"]]),"MODE");this.appendValueInput("_UID").setCheck("String").appendField("of PTC Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/PTC_Bricklet_JavaScript.html#BrickletPTC.setWireMode")}};
Blockly.Blocks.bricklet_ptc_get_wire_mode={init:function(){this.appendDummyInput().appendField("Get Wire Mode");this.appendValueInput("_UID").setCheck("String").appendField("of PTC Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/PTC_Bricklet_JavaScript.html#BrickletPTC.getWireMode")}};
Blockly.Blocks.bricklet_ptc_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of PTC Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/PTC_Bricklet_JavaScript.html#BrickletPTC.getIdentity")}};
Blockly.Blocks.bricklet_real_time_clock_set_date_time={init:function(){this.appendDummyInput().appendField("Set Date Time to");this.appendValueInput("YEAR").setCheck("Number").appendField("Year");this.appendValueInput("MONTH").setCheck("Number").appendField("Month");this.appendValueInput("DAY").setCheck("Number").appendField("Day");this.appendValueInput("HOUR").setCheck("Number").appendField("Hour");this.appendValueInput("MINUTE").setCheck("Number").appendField("Minute");this.appendValueInput("SECOND").setCheck("Number").appendField("Second");
this.appendValueInput("CENTISECOND").setCheck("Number").appendField("Centisecond");this.appendDummyInput().appendField("and Weekday").appendField(new Blockly.FieldDropdown([["Monday","1"],["Tuesday","2"],["Wednesday","3"],["Thursday","4"],["Friday","5"],["Saturday","6"],["Sunday","7"]]),"WEEKDAY");this.appendValueInput("_UID").setCheck("String").appendField("of Real-Time Clock Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RealTimeClock_Bricklet_JavaScript.html#BrickletRealTimeClock.setDateTime")}};
Blockly.Blocks.bricklet_real_time_clock_get_date_time={init:function(){this.appendDummyInput().appendField("Get Date Time");this.appendValueInput("_UID").setCheck("String").appendField("of Real-Time Clock Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RealTimeClock_Bricklet_JavaScript.html#BrickletRealTimeClock.getDateTime")}};
Blockly.Blocks.bricklet_real_time_clock_get_timestamp={init:function(){this.appendDummyInput().appendField("Get Timestamp");this.appendValueInput("_UID").setCheck("String").appendField("of Real-Time Clock Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RealTimeClock_Bricklet_JavaScript.html#BrickletRealTimeClock.getTimestamp")}};
Blockly.Blocks.bricklet_real_time_clock_set_offset={init:function(){this.appendDummyInput().appendField("Set Offset to");this.appendValueInput("OFFSET").setCheck("Number").appendField("Offset");this.appendValueInput("_UID").setCheck("String").appendField("of Real-Time Clock Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RealTimeClock_Bricklet_JavaScript.html#BrickletRealTimeClock.setOffset")}};
Blockly.Blocks.bricklet_real_time_clock_get_offset={init:function(){this.appendDummyInput().appendField("Get Offset");this.appendValueInput("_UID").setCheck("String").appendField("of Real-Time Clock Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RealTimeClock_Bricklet_JavaScript.html#BrickletRealTimeClock.getOffset")}};
Blockly.Blocks.bricklet_real_time_clock_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Real-Time Clock Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RealTimeClock_Bricklet_JavaScript.html#BrickletRealTimeClock.getIdentity")}};
Blockly.Blocks.bricklet_remote_switch_switch_socket={init:function(){this.appendDummyInput().appendField("Switch Socket to");this.appendValueInput("HOUSE_CODE").setCheck("Number").appendField("House Code");this.appendValueInput("RECEIVER_CODE").setCheck("Number").appendField("Receiver Code");this.appendDummyInput().appendField("and Switch To").appendField(new Blockly.FieldDropdown([["Off","0"],["On","1"]]),"SWITCH_TO");this.appendValueInput("_UID").setCheck("String").appendField("of Remote Switch Bricklet");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RemoteSwitch_Bricklet_JavaScript.html#BrickletRemoteSwitch.switchSocket")}};
Blockly.Blocks.bricklet_remote_switch_get_switching_state={init:function(){this.appendDummyInput().appendField("Get Switching State");this.appendValueInput("_UID").setCheck("String").appendField("of Remote Switch Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RemoteSwitch_Bricklet_JavaScript.html#BrickletRemoteSwitch.getSwitchingState")}};
Blockly.Blocks.bricklet_remote_switch_set_repeats={init:function(){this.appendDummyInput().appendField("Set Repeats to");this.appendValueInput("REPEATS").setCheck("Number").appendField("Repeats");this.appendValueInput("_UID").setCheck("String").appendField("of Remote Switch Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);
this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RemoteSwitch_Bricklet_JavaScript.html#BrickletRemoteSwitch.setRepeats")}};
Blockly.Blocks.bricklet_remote_switch_get_repeats={init:function(){this.appendDummyInput().appendField("Get Repeats");this.appendValueInput("_UID").setCheck("String").appendField("of Remote Switch Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RemoteSwitch_Bricklet_JavaScript.html#BrickletRemoteSwitch.getRepeats")}};
Blockly.Blocks.bricklet_remote_switch_switch_socket_a={init:function(){this.appendDummyInput().appendField("Switch Socket A to");this.appendValueInput("HOUSE_CODE").setCheck("Number").appendField("House Code");this.appendValueInput("RECEIVER_CODE").setCheck("Number").appendField("Receiver Code");this.appendDummyInput().appendField("and Switch To").appendField(new Blockly.FieldDropdown([["Off","0"],["On","1"]]),"SWITCH_TO");this.appendValueInput("_UID").setCheck("String").appendField("of Remote Switch Bricklet");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RemoteSwitch_Bricklet_JavaScript.html#BrickletRemoteSwitch.switchSocketA")}};
Blockly.Blocks.bricklet_remote_switch_switch_socket_b={init:function(){this.appendDummyInput().appendField("Switch Socket B to");this.appendValueInput("ADDRESS").setCheck("Number").appendField("Address");this.appendValueInput("UNIT").setCheck("Number").appendField("Unit");this.appendDummyInput().appendField("and Switch To").appendField(new Blockly.FieldDropdown([["Off","0"],["On","1"]]),"SWITCH_TO");this.appendValueInput("_UID").setCheck("String").appendField("of Remote Switch Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RemoteSwitch_Bricklet_JavaScript.html#BrickletRemoteSwitch.switchSocketB")}};
Blockly.Blocks.bricklet_remote_switch_dim_socket_b={init:function(){this.appendDummyInput().appendField("Dim Socket B to");this.appendValueInput("ADDRESS").setCheck("Number").appendField("Address");this.appendValueInput("UNIT").setCheck("Number").appendField("Unit");this.appendValueInput("DIM_VALUE").setCheck("Number").appendField("and Dim Value");this.appendValueInput("_UID").setCheck("String").appendField("of Remote Switch Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");
this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RemoteSwitch_Bricklet_JavaScript.html#BrickletRemoteSwitch.dimSocketB")}};
Blockly.Blocks.bricklet_remote_switch_switch_socket_c={init:function(){this.appendDummyInput().appendField("Switch Socket C to");this.appendValueInput("SYSTEM_CODE").setCheck("String").appendField("System Code");this.appendValueInput("DEVICE_CODE").setCheck("Number").appendField("Device Code");this.appendDummyInput().appendField("and Switch To").appendField(new Blockly.FieldDropdown([["Off","0"],["On","1"]]),"SWITCH_TO");this.appendValueInput("_UID").setCheck("String").appendField("of Remote Switch Bricklet");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RemoteSwitch_Bricklet_JavaScript.html#BrickletRemoteSwitch.switchSocketC")}};
Blockly.Blocks.bricklet_remote_switch_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Remote Switch Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RemoteSwitch_Bricklet_JavaScript.html#BrickletRemoteSwitch.getIdentity")}};
Blockly.Blocks.bricklet_rotary_encoder_get_count={init:function(){this.appendDummyInput().appendField("Get Count with");this.appendDummyInput().appendField("Reset").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"RESET");this.appendValueInput("_UID").setCheck("String").appendField("of Rotary Encoder Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,
"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RotaryEncoder_Bricklet_JavaScript.html#BrickletRotaryEncoder.getCount")}};
Blockly.Blocks.bricklet_rotary_encoder_is_pressed={init:function(){this.appendDummyInput().appendField("Is Pressed");this.appendValueInput("_UID").setCheck("String").appendField("of Rotary Encoder Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RotaryEncoder_Bricklet_JavaScript.html#BrickletRotaryEncoder.isPressed")}};
Blockly.Blocks.bricklet_rotary_encoder_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Rotary Encoder Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RotaryEncoder_Bricklet_JavaScript.html#BrickletRotaryEncoder.getIdentity")}};
Blockly.Blocks.bricklet_rotary_poti_get_position={init:function(){this.appendDummyInput().appendField("Get Position");this.appendValueInput("_UID").setCheck("String").appendField("of Rotary Poti Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RotaryPoti_Bricklet_JavaScript.html#BrickletRotaryPoti.getPosition")}};
Blockly.Blocks.bricklet_rotary_poti_get_analog_value={init:function(){this.appendDummyInput().appendField("Get Analog Value");this.appendValueInput("_UID").setCheck("String").appendField("of Rotary Poti Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RotaryPoti_Bricklet_JavaScript.html#BrickletRotaryPoti.getAnalogValue")}};
Blockly.Blocks.bricklet_rotary_poti_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Rotary Poti Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RotaryPoti_Bricklet_JavaScript.html#BrickletRotaryPoti.getIdentity")}};
Blockly.Blocks.bricklet_rs232_write={init:function(){this.appendDummyInput().appendField("Write with");this.appendValueInput("MESSAGE").setCheck("String").appendField("Message");this.appendValueInput("LENGTH").setCheck("Number").appendField("and Length");this.appendValueInput("_UID").setCheck("String").appendField("of RS232 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,
"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RS232_Bricklet_JavaScript.html#BrickletRS232.write")}};
Blockly.Blocks.bricklet_rs232_read={init:function(){this.appendDummyInput().appendField("Read");this.appendValueInput("_UID").setCheck("String").appendField("of RS232 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RS232_Bricklet_JavaScript.html#BrickletRS232.read")}};
Blockly.Blocks.bricklet_rs232_set_configuration={init:function(){this.appendDummyInput().appendField("Set Configuration to");this.appendDummyInput().appendField("Baudrate").appendField(new Blockly.FieldDropdown([["300","0"],["600","1"],["1200","2"],["2400","3"],["4800","4"],["9600","5"],["14400","6"],["19200","7"],["28800","8"],["38400","9"],["57600","10"],["115200","11"],["230400","12"]]),"BAUDRATE");this.appendDummyInput().appendField("Parity").appendField(new Blockly.FieldDropdown([["None","0"],
["Odd","1"],["Even","2"],["Forced Parity 1","3"],["Forced Parity 0","4"]]),"PARITY");this.appendDummyInput().appendField("Stopbits").appendField(new Blockly.FieldDropdown([["1","1"],["2","2"]]),"STOPBITS");this.appendDummyInput().appendField("Wordlength").appendField(new Blockly.FieldDropdown([["5","5"],["6","6"],["7","7"],["8","8"]]),"WORDLENGTH");this.appendDummyInput().appendField("Hardware Flowcontrol").appendField(new Blockly.FieldDropdown([["Off","0"],["On","1"]]),"HARDWARE_FLOWCONTROL");this.appendDummyInput().appendField("and Software Flowcontrol").appendField(new Blockly.FieldDropdown([["Off",
"0"],["On","1"]]),"SOFTWARE_FLOWCONTROL");this.appendValueInput("_UID").setCheck("String").appendField("of RS232 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RS232_Bricklet_JavaScript.html#BrickletRS232.setConfiguration")}};
Blockly.Blocks.bricklet_rs232_get_configuration={init:function(){this.appendDummyInput().appendField("Get Configuration");this.appendValueInput("_UID").setCheck("String").appendField("of RS232 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RS232_Bricklet_JavaScript.html#BrickletRS232.getConfiguration")}};
Blockly.Blocks.bricklet_rs232_set_break_condition={init:function(){this.appendDummyInput().appendField("Set Break Condition to");this.appendValueInput("BREAK_TIME").setCheck("Number").appendField("Break Time");this.appendValueInput("_UID").setCheck("String").appendField("of RS232 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RS232_Bricklet_JavaScript.html#BrickletRS232.setBreakCondition")}};
Blockly.Blocks.bricklet_rs232_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of RS232 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/RS232_Bricklet_JavaScript.html#BrickletRS232.getIdentity")}};
Blockly.Blocks.bricklet_segment_display_4x7_set_segments={init:function(){this.appendDummyInput().appendField("Set Segments to");this.appendValueInput("SEGMENTS").setCheck("Number").appendField("Segments");this.appendValueInput("BRIGHTNESS").setCheck("Number").appendField("Brightness");this.appendDummyInput().appendField("and Colon").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"COLON");this.appendValueInput("_UID").setCheck("String").appendField("of Segment Display 4x7 Bricklet");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/SegmentDisplay4x7_Bricklet_JavaScript.html#BrickletSegmentDisplay4x7.setSegments")}};
Blockly.Blocks.bricklet_segment_display_4x7_get_segments={init:function(){this.appendDummyInput().appendField("Get Segments");this.appendValueInput("_UID").setCheck("String").appendField("of Segment Display 4x7 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/SegmentDisplay4x7_Bricklet_JavaScript.html#BrickletSegmentDisplay4x7.getSegments")}};
Blockly.Blocks.bricklet_segment_display_4x7_start_counter={init:function(){this.appendDummyInput().appendField("Start Counter to");this.appendValueInput("VALUE_FROM").setCheck("Number").appendField("Value From");this.appendValueInput("VALUE_TO").setCheck("Number").appendField("Value To");this.appendValueInput("INCREMENT").setCheck("Number").appendField("Increment");this.appendValueInput("LENGTH").setCheck("Number").appendField("and Length");this.appendValueInput("_UID").setCheck("String").appendField("of Segment Display 4x7 Bricklet");
this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/SegmentDisplay4x7_Bricklet_JavaScript.html#BrickletSegmentDisplay4x7.startCounter")}};
Blockly.Blocks.bricklet_segment_display_4x7_get_counter_value={init:function(){this.appendDummyInput().appendField("Get Counter Value");this.appendValueInput("_UID").setCheck("String").appendField("of Segment Display 4x7 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/SegmentDisplay4x7_Bricklet_JavaScript.html#BrickletSegmentDisplay4x7.getCounterValue")}};
Blockly.Blocks.bricklet_segment_display_4x7_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Segment Display 4x7 Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/SegmentDisplay4x7_Bricklet_JavaScript.html#BrickletSegmentDisplay4x7.getIdentity")}};
Blockly.Blocks.bricklet_solid_state_relay_set_state={init:function(){this.appendDummyInput().appendField("Set State to");this.appendDummyInput().appendField("State").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"STATE");this.appendValueInput("_UID").setCheck("String").appendField("of Solid State Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);
this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/SolidStateRelay_Bricklet_JavaScript.html#BrickletSolidStateRelay.setState")}};
Blockly.Blocks.bricklet_solid_state_relay_get_state={init:function(){this.appendDummyInput().appendField("Get State");this.appendValueInput("_UID").setCheck("String").appendField("of Solid State Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Boolean");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/SolidStateRelay_Bricklet_JavaScript.html#BrickletSolidStateRelay.getState")}};
Blockly.Blocks.bricklet_solid_state_relay_set_monoflop={init:function(){this.appendDummyInput().appendField("Set Monoflop to");this.appendDummyInput().appendField("State").appendField(new Blockly.FieldDropdown([["True","1"],["False","0"]]),"STATE");this.appendValueInput("TIME").setCheck("Number").appendField("and Time");this.appendValueInput("_UID").setCheck("String").appendField("of Solid State Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/SolidStateRelay_Bricklet_JavaScript.html#BrickletSolidStateRelay.setMonoflop")}};
Blockly.Blocks.bricklet_solid_state_relay_get_monoflop={init:function(){this.appendDummyInput().appendField("Get Monoflop");this.appendValueInput("_UID").setCheck("String").appendField("of Solid State Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/SolidStateRelay_Bricklet_JavaScript.html#BrickletSolidStateRelay.getMonoflop")}};
Blockly.Blocks.bricklet_solid_state_relay_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Solid State Relay Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/SolidStateRelay_Bricklet_JavaScript.html#BrickletSolidStateRelay.getIdentity")}};
Blockly.Blocks.bricklet_sound_intensity_get_intensity={init:function(){this.appendDummyInput().appendField("Get Intensity");this.appendValueInput("_UID").setCheck("String").appendField("of Sound Intensity Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/SoundIntensity_Bricklet_JavaScript.html#BrickletSoundIntensity.getIntensity")}};
Blockly.Blocks.bricklet_sound_intensity_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Sound Intensity Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/SoundIntensity_Bricklet_JavaScript.html#BrickletSoundIntensity.getIdentity")}};
Blockly.Blocks.bricklet_temperature_get_temperature={init:function(){this.appendDummyInput().appendField("Get Temperature");this.appendValueInput("_UID").setCheck("String").appendField("of Temperature Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Temperature_Bricklet_JavaScript.html#BrickletTemperature.getTemperature")}};
Blockly.Blocks.bricklet_temperature_set_i2c_mode={init:function(){this.appendDummyInput().appendField("Set I2C Mode to");this.appendDummyInput().appendField("Mode").appendField(new Blockly.FieldDropdown([["Fast","0"],["Slow","1"]]),"MODE");this.appendValueInput("_UID").setCheck("String").appendField("of Temperature Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);
this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Temperature_Bricklet_JavaScript.html#BrickletTemperature.setI2CMode")}};
Blockly.Blocks.bricklet_temperature_get_i2c_mode={init:function(){this.appendDummyInput().appendField("Get I2C Mode");this.appendValueInput("_UID").setCheck("String").appendField("of Temperature Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Temperature_Bricklet_JavaScript.html#BrickletTemperature.getI2CMode")}};
Blockly.Blocks.bricklet_temperature_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Temperature Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Temperature_Bricklet_JavaScript.html#BrickletTemperature.getIdentity")}};
Blockly.Blocks.bricklet_temperature_ir_get_ambient_temperature={init:function(){this.appendDummyInput().appendField("Get Ambient Temperature");this.appendValueInput("_UID").setCheck("String").appendField("of Temperature IR Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/TemperatureIR_Bricklet_JavaScript.html#BrickletTemperatureIR.getAmbientTemperature")}};
Blockly.Blocks.bricklet_temperature_ir_get_object_temperature={init:function(){this.appendDummyInput().appendField("Get Object Temperature");this.appendValueInput("_UID").setCheck("String").appendField("of Temperature IR Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/TemperatureIR_Bricklet_JavaScript.html#BrickletTemperatureIR.getObjectTemperature")}};
Blockly.Blocks.bricklet_temperature_ir_set_emissivity={init:function(){this.appendDummyInput().appendField("Set Emissivity to");this.appendValueInput("EMISSIVITY").setCheck("Number").appendField("Emissivity");this.appendValueInput("_UID").setCheck("String").appendField("of Temperature IR Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);
this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/TemperatureIR_Bricklet_JavaScript.html#BrickletTemperatureIR.setEmissivity")}};
Blockly.Blocks.bricklet_temperature_ir_get_emissivity={init:function(){this.appendDummyInput().appendField("Get Emissivity");this.appendValueInput("_UID").setCheck("String").appendField("of Temperature IR Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/TemperatureIR_Bricklet_JavaScript.html#BrickletTemperatureIR.getEmissivity")}};
Blockly.Blocks.bricklet_temperature_ir_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Temperature IR Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/TemperatureIR_Bricklet_JavaScript.html#BrickletTemperatureIR.getIdentity")}};
Blockly.Blocks.bricklet_thermocouple_get_temperature={init:function(){this.appendDummyInput().appendField("Get Temperature");this.appendValueInput("_UID").setCheck("String").appendField("of Thermocouple Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Thermocouple_Bricklet_JavaScript.html#BrickletThermocouple.getTemperature")}};
Blockly.Blocks.bricklet_thermocouple_set_configuration={init:function(){this.appendDummyInput().appendField("Set Configuration to");this.appendDummyInput().appendField("Averaging").appendField(new Blockly.FieldDropdown([["1","1"],["2","2"],["4","4"],["8","8"],["16","16"]]),"AVERAGING");this.appendDummyInput().appendField("Thermocouple Type").appendField(new Blockly.FieldDropdown([["B","0"],["E","1"],["J","2"],["K","3"],["N","4"],["R","5"],["S","6"],["T","7"],["G8","8"],["G32","9"]]),"THERMOCOUPLE_TYPE");
this.appendDummyInput().appendField("and Filter").appendField(new Blockly.FieldDropdown([["50Hz","0"],["60Hz","1"]]),"FILTER");this.appendValueInput("_UID").setCheck("String").appendField("of Thermocouple Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Thermocouple_Bricklet_JavaScript.html#BrickletThermocouple.setConfiguration")}};
Blockly.Blocks.bricklet_thermocouple_get_configuration={init:function(){this.appendDummyInput().appendField("Get Configuration");this.appendValueInput("_UID").setCheck("String").appendField("of Thermocouple Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Thermocouple_Bricklet_JavaScript.html#BrickletThermocouple.getConfiguration")}};
Blockly.Blocks.bricklet_thermocouple_get_error_state={init:function(){this.appendDummyInput().appendField("Get Error State");this.appendValueInput("_UID").setCheck("String").appendField("of Thermocouple Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Thermocouple_Bricklet_JavaScript.html#BrickletThermocouple.getErrorState")}};
Blockly.Blocks.bricklet_thermocouple_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Thermocouple Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Thermocouple_Bricklet_JavaScript.html#BrickletThermocouple.getIdentity")}};
Blockly.Blocks.bricklet_tilt_get_tilt_state={init:function(){this.appendDummyInput().appendField("Get Tilt State");this.appendValueInput("_UID").setCheck("String").appendField("of Tilt Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Tilt_Bricklet_JavaScript.html#BrickletTilt.getTiltState")}};
Blockly.Blocks.bricklet_tilt_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Tilt Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Tilt_Bricklet_JavaScript.html#BrickletTilt.getIdentity")}};
Blockly.Blocks.bricklet_uv_light_get_uv_light={init:function(){this.appendDummyInput().appendField("Get UV Light");this.appendValueInput("_UID").setCheck("String").appendField("of UV Light Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/UVLight_Bricklet_JavaScript.html#BrickletUVLight.getUVLight")}};
Blockly.Blocks.bricklet_uv_light_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of UV Light Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/UVLight_Bricklet_JavaScript.html#BrickletUVLight.getIdentity")}};
Blockly.Blocks.bricklet_voltage_get_voltage={init:function(){this.appendDummyInput().appendField("Get Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of Voltage Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Voltage_Bricklet_JavaScript.html#BrickletVoltage.getVoltage")}};
Blockly.Blocks.bricklet_voltage_get_analog_value={init:function(){this.appendDummyInput().appendField("Get Analog Value");this.appendValueInput("_UID").setCheck("String").appendField("of Voltage Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Voltage_Bricklet_JavaScript.html#BrickletVoltage.getAnalogValue")}};
Blockly.Blocks.bricklet_voltage_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Voltage Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/Voltage_Bricklet_JavaScript.html#BrickletVoltage.getIdentity")}};
Blockly.Blocks.bricklet_voltage_current_get_current={init:function(){this.appendDummyInput().appendField("Get Current");this.appendValueInput("_UID").setCheck("String").appendField("of Voltage/Current Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/VoltageCurrent_Bricklet_JavaScript.html#BrickletVoltageCurrent.getCurrent")}};
Blockly.Blocks.bricklet_voltage_current_get_voltage={init:function(){this.appendDummyInput().appendField("Get Voltage");this.appendValueInput("_UID").setCheck("String").appendField("of Voltage/Current Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/VoltageCurrent_Bricklet_JavaScript.html#BrickletVoltageCurrent.getVoltage")}};
Blockly.Blocks.bricklet_voltage_current_get_power={init:function(){this.appendDummyInput().appendField("Get Power");this.appendValueInput("_UID").setCheck("String").appendField("of Voltage/Current Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Number");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/VoltageCurrent_Bricklet_JavaScript.html#BrickletVoltageCurrent.getPower")}};
Blockly.Blocks.bricklet_voltage_current_set_configuration={init:function(){this.appendDummyInput().appendField("Set Configuration to");this.appendDummyInput().appendField("Averaging").appendField(new Blockly.FieldDropdown([["1","0"],["4","1"],["16","2"],["64","3"],["128","4"],["256","5"],["512","6"],["1024","7"]]),"AVERAGING");this.appendValueInput("VOLTAGE_CONVERSION_TIME").setCheck("Number").appendField("Voltage Conversion Time");this.appendValueInput("CURRENT_CONVERSION_TIME").setCheck("Number").appendField("and Current Conversion Time");
this.appendValueInput("_UID").setCheck("String").appendField("of Voltage/Current Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/VoltageCurrent_Bricklet_JavaScript.html#BrickletVoltageCurrent.setConfiguration")}};
Blockly.Blocks.bricklet_voltage_current_get_configuration={init:function(){this.appendDummyInput().appendField("Get Configuration");this.appendValueInput("_UID").setCheck("String").appendField("of Voltage/Current Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/VoltageCurrent_Bricklet_JavaScript.html#BrickletVoltageCurrent.getConfiguration")}};
Blockly.Blocks.bricklet_voltage_current_set_calibration={init:function(){this.appendDummyInput().appendField("Set Calibration to");this.appendValueInput("GAIN_MULTIPLIER").setCheck("Number").appendField("Gain Multiplier");this.appendValueInput("GAIN_DIVISOR").setCheck("Number").appendField("and Gain Divisor");this.appendValueInput("_UID").setCheck("String").appendField("of Voltage/Current Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");
this.setInputsInline(!0);this.setOutput(!1);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/VoltageCurrent_Bricklet_JavaScript.html#BrickletVoltageCurrent.setCalibration")}};
Blockly.Blocks.bricklet_voltage_current_get_calibration={init:function(){this.appendDummyInput().appendField("Get Calibration");this.appendValueInput("_UID").setCheck("String").appendField("of Voltage/Current Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/VoltageCurrent_Bricklet_JavaScript.html#BrickletVoltageCurrent.getCalibration")}};
Blockly.Blocks.bricklet_voltage_current_get_identity={init:function(){this.appendDummyInput().appendField("Get Identity");this.appendValueInput("_UID").setCheck("String").appendField("of Voltage/Current Bricklet");this.appendValueInput("_HOST").setCheck("String").appendField("at");this.appendValueInput("_PORT").setCheck("Number").appendField(":");this.setInputsInline(!0);this.setOutput(!0,"Array");this.setPreviousStatement(!1);this.setNextStatement(!1);this.setColour(297);this.setHelpUrl("http://www.tinkerforge.com/en/doc/Software/Bricklets/VoltageCurrent_Bricklet_JavaScript.html#BrickletVoltageCurrent.getIdentity")}};Blockly.Blocks.colour={};Blockly.Blocks.colour.HUE=20;Blockly.Blocks.colour_picker={init:function(){this.jsonInit({message0:"%1",args0:[{type:"field_colour",name:"COLOUR",colour:"#ff0000"}],output:"Colour",colour:Blockly.Blocks.colour.HUE,helpUrl:Blockly.Msg.COLOUR_PICKER_HELPURL});var a=this;this.setTooltip(function(){var b=a.getParent();return b&&b.tooltip||Blockly.Msg.COLOUR_PICKER_TOOLTIP})}};
Blockly.Blocks.colour_random={init:function(){this.jsonInit({message0:Blockly.Msg.COLOUR_RANDOM_TITLE,output:"Colour",colour:Blockly.Blocks.colour.HUE,tooltip:Blockly.Msg.COLOUR_RANDOM_TOOLTIP,helpUrl:Blockly.Msg.COLOUR_RANDOM_HELPURL})}};
Blockly.Blocks.colour_rgb={init:function(){this.setHelpUrl(Blockly.Msg.COLOUR_RGB_HELPURL);this.setColour(Blockly.Blocks.colour.HUE);this.appendValueInput("RED").setCheck("Number").setAlign(Blockly.ALIGN_RIGHT).appendField(Blockly.Msg.COLOUR_RGB_TITLE).appendField(Blockly.Msg.COLOUR_RGB_RED);this.appendValueInput("GREEN").setCheck("Number").setAlign(Blockly.ALIGN_RIGHT).appendField(Blockly.Msg.COLOUR_RGB_GREEN);this.appendValueInput("BLUE").setCheck("Number").setAlign(Blockly.ALIGN_RIGHT).appendField(Blockly.Msg.COLOUR_RGB_BLUE);
this.setOutput(!0,"Colour");this.setTooltip(Blockly.Msg.COLOUR_RGB_TOOLTIP)}};
Blockly.Blocks.colour_blend={init:function(){this.setHelpUrl(Blockly.Msg.COLOUR_BLEND_HELPURL);this.setColour(Blockly.Blocks.colour.HUE);this.appendValueInput("COLOUR1").setCheck("Colour").setAlign(Blockly.ALIGN_RIGHT).appendField(Blockly.Msg.COLOUR_BLEND_TITLE).appendField(Blockly.Msg.COLOUR_BLEND_COLOUR1);this.appendValueInput("COLOUR2").setCheck("Colour").setAlign(Blockly.ALIGN_RIGHT).appendField(Blockly.Msg.COLOUR_BLEND_COLOUR2);this.appendValueInput("RATIO").setCheck("Number").setAlign(Blockly.ALIGN_RIGHT).appendField(Blockly.Msg.COLOUR_BLEND_RATIO);
this.setOutput(!0,"Colour");this.setTooltip(Blockly.Msg.COLOUR_BLEND_TOOLTIP)}};Blockly.Blocks.lists={};Blockly.Blocks.lists.HUE=260;Blockly.Blocks.lists_create_empty={init:function(){this.jsonInit({message0:Blockly.Msg.LISTS_CREATE_EMPTY_TITLE,output:"Array",colour:Blockly.Blocks.lists.HUE,tooltip:Blockly.Msg.LISTS_CREATE_EMPTY_TOOLTIP,helpUrl:Blockly.Msg.LISTS_CREATE_EMPTY_HELPURL})}};
Blockly.Blocks.lists_create_with={init:function(){this.setHelpUrl(Blockly.Msg.LISTS_CREATE_WITH_HELPURL);this.setColour(Blockly.Blocks.lists.HUE);this.itemCount_=3;this.updateShape_();this.setOutput(!0,"Array");this.setMutator(new Blockly.Mutator(["lists_create_with_item"]));this.setTooltip(Blockly.Msg.LISTS_CREATE_WITH_TOOLTIP)},mutationToDom:function(){var a=document.createElement("mutation");a.setAttribute("items",this.itemCount_);return a},domToMutation:function(a){this.itemCount_=parseInt(a.getAttribute("items"),
10);this.updateShape_()},decompose:function(a){var b=a.newBlock("lists_create_with_container");b.initSvg();for(var c=b.getInput("STACK").connection,d=0;d<this.itemCount_;d++){var e=a.newBlock("lists_create_with_item");e.initSvg();c.connect(e.previousConnection);c=e.nextConnection}return b},compose:function(a){var b=a.getInputTargetBlock("STACK");for(a=[];b;)a.push(b.valueConnection_),b=b.nextConnection&&b.nextConnection.targetBlock();this.itemCount_=a.length;this.updateShape_();for(b=0;b<this.itemCount_;b++)a[b]&&
this.getInput("ADD"+b).connection.connect(a[b])},saveConnections:function(a){a=a.getInputTargetBlock("STACK");for(var b=0;a;){var c=this.getInput("ADD"+b);a.valueConnection_=c&&c.connection.targetConnection;b++;a=a.nextConnection&&a.nextConnection.targetBlock()}},updateShape_:function(){if(this.getInput("EMPTY"))this.removeInput("EMPTY");else for(var a=0;this.getInput("ADD"+a);)this.removeInput("ADD"+a),a++;if(0==this.itemCount_)this.appendDummyInput("EMPTY").appendField(Blockly.Msg.LISTS_CREATE_EMPTY_TITLE);
else for(a=0;a<this.itemCount_;a++){var b=this.appendValueInput("ADD"+a);0==a&&b.appendField(Blockly.Msg.LISTS_CREATE_WITH_INPUT_WITH)}}};Blockly.Blocks.lists_create_with_container={init:function(){this.setColour(Blockly.Blocks.lists.HUE);this.appendDummyInput().appendField(Blockly.Msg.LISTS_CREATE_WITH_CONTAINER_TITLE_ADD);this.appendStatementInput("STACK");this.setTooltip(Blockly.Msg.LISTS_CREATE_WITH_CONTAINER_TOOLTIP);this.contextMenu=!1}};
Blockly.Blocks.lists_create_with_item={init:function(){this.setColour(Blockly.Blocks.lists.HUE);this.appendDummyInput().appendField(Blockly.Msg.LISTS_CREATE_WITH_ITEM_TITLE);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setTooltip(Blockly.Msg.LISTS_CREATE_WITH_ITEM_TOOLTIP);this.contextMenu=!1}};
Blockly.Blocks.lists_repeat={init:function(){this.jsonInit({message0:Blockly.Msg.LISTS_REPEAT_TITLE,args0:[{type:"input_value",name:"ITEM"},{type:"input_value",name:"NUM",check:"Number"}],output:"Array",colour:Blockly.Blocks.lists.HUE,tooltip:Blockly.Msg.LISTS_REPEAT_TOOLTIP,helpUrl:Blockly.Msg.LISTS_REPEAT_HELPURL})}};
Blockly.Blocks.lists_length={init:function(){this.jsonInit({message0:Blockly.Msg.LISTS_LENGTH_TITLE,args0:[{type:"input_value",name:"VALUE",check:["String","Array"]}],output:"Number",colour:Blockly.Blocks.lists.HUE,tooltip:Blockly.Msg.LISTS_LENGTH_TOOLTIP,helpUrl:Blockly.Msg.LISTS_LENGTH_HELPURL})}};
Blockly.Blocks.lists_isEmpty={init:function(){this.jsonInit({message0:Blockly.Msg.LISTS_ISEMPTY_TITLE,args0:[{type:"input_value",name:"VALUE",check:["String","Array"]}],output:"Boolean",colour:Blockly.Blocks.lists.HUE,tooltip:Blockly.Msg.LISTS_ISEMPTY_TOOLTIP,helpUrl:Blockly.Msg.LISTS_ISEMPTY_HELPURL})}};
Blockly.Blocks.lists_indexOf={init:function(){var a=[[Blockly.Msg.LISTS_INDEX_OF_FIRST,"FIRST"],[Blockly.Msg.LISTS_INDEX_OF_LAST,"LAST"]];this.setHelpUrl(Blockly.Msg.LISTS_INDEX_OF_HELPURL);this.setColour(Blockly.Blocks.lists.HUE);this.setOutput(!0,"Number");this.appendValueInput("VALUE").setCheck("Array").appendField(Blockly.Msg.LISTS_INDEX_OF_INPUT_IN_LIST);this.appendValueInput("FIND").appendField(new Blockly.FieldDropdown(a),"END");this.setInputsInline(!0);this.setTooltip(Blockly.Msg.LISTS_INDEX_OF_TOOLTIP)}};
Blockly.Blocks.lists_getIndex={init:function(){var a=[[Blockly.Msg.LISTS_GET_INDEX_GET,"GET"],[Blockly.Msg.LISTS_GET_INDEX_GET_REMOVE,"GET_REMOVE"],[Blockly.Msg.LISTS_GET_INDEX_REMOVE,"REMOVE"]];this.WHERE_OPTIONS=[[Blockly.Msg.LISTS_GET_INDEX_FROM_START,"FROM_START"],[Blockly.Msg.LISTS_GET_INDEX_FROM_END,"FROM_END"],[Blockly.Msg.LISTS_GET_INDEX_FIRST,"FIRST"],[Blockly.Msg.LISTS_GET_INDEX_LAST,"LAST"],[Blockly.Msg.LISTS_GET_INDEX_RANDOM,"RANDOM"]];this.setHelpUrl(Blockly.Msg.LISTS_GET_INDEX_HELPURL);
this.setColour(Blockly.Blocks.lists.HUE);a=new Blockly.FieldDropdown(a,function(a){this.sourceBlock_.updateStatement_("REMOVE"==a)});this.appendValueInput("VALUE").setCheck("Array").appendField(Blockly.Msg.LISTS_GET_INDEX_INPUT_IN_LIST);this.appendDummyInput().appendField(a,"MODE").appendField("","SPACE");this.appendDummyInput("AT");Blockly.Msg.LISTS_GET_INDEX_TAIL&&this.appendDummyInput("TAIL").appendField(Blockly.Msg.LISTS_GET_INDEX_TAIL);this.setInputsInline(!0);this.setOutput(!0);this.updateAt_(!0);
var b=this;this.setTooltip(function(){var a=b.getFieldValue("MODE")+"_"+b.getFieldValue("WHERE");return Blockly.Msg["LISTS_GET_INDEX_TOOLTIP_"+a]})},mutationToDom:function(){var a=document.createElement("mutation");a.setAttribute("statement",!this.outputConnection);var b=this.getInput("AT").type==Blockly.INPUT_VALUE;a.setAttribute("at",b);return a},domToMutation:function(a){var b="true"==a.getAttribute("statement");this.updateStatement_(b);a="false"!=a.getAttribute("at");this.updateAt_(a)},updateStatement_:function(a){a!=
!this.outputConnection&&(this.unplug(!0,!0),a?(this.setOutput(!1),this.setPreviousStatement(!0),this.setNextStatement(!0)):(this.setPreviousStatement(!1),this.setNextStatement(!1),this.setOutput(!0)))},updateAt_:function(a){this.removeInput("AT");this.removeInput("ORDINAL",!0);a?(this.appendValueInput("AT").setCheck("Number"),Blockly.Msg.ORDINAL_NUMBER_SUFFIX&&this.appendDummyInput("ORDINAL").appendField(Blockly.Msg.ORDINAL_NUMBER_SUFFIX)):this.appendDummyInput("AT");var b=new Blockly.FieldDropdown(this.WHERE_OPTIONS,
function(b){var d="FROM_START"==b||"FROM_END"==b;if(d!=a){var e=this.sourceBlock_;e.updateAt_(d);e.setFieldValue(b,"WHERE");return null}});this.getInput("AT").appendField(b,"WHERE");Blockly.Msg.LISTS_GET_INDEX_TAIL&&this.moveInputBefore("TAIL",null)}};
Blockly.Blocks.lists_setIndex={init:function(){var a=[[Blockly.Msg.LISTS_SET_INDEX_SET,"SET"],[Blockly.Msg.LISTS_SET_INDEX_INSERT,"INSERT"]];this.WHERE_OPTIONS=[[Blockly.Msg.LISTS_GET_INDEX_FROM_START,"FROM_START"],[Blockly.Msg.LISTS_GET_INDEX_FROM_END,"FROM_END"],[Blockly.Msg.LISTS_GET_INDEX_FIRST,"FIRST"],[Blockly.Msg.LISTS_GET_INDEX_LAST,"LAST"],[Blockly.Msg.LISTS_GET_INDEX_RANDOM,"RANDOM"]];this.setHelpUrl(Blockly.Msg.LISTS_SET_INDEX_HELPURL);this.setColour(Blockly.Blocks.lists.HUE);this.appendValueInput("LIST").setCheck("Array").appendField(Blockly.Msg.LISTS_SET_INDEX_INPUT_IN_LIST);
this.appendDummyInput().appendField(new Blockly.FieldDropdown(a),"MODE").appendField("","SPACE");this.appendDummyInput("AT");this.appendValueInput("TO").appendField(Blockly.Msg.LISTS_SET_INDEX_INPUT_TO);this.setInputsInline(!0);this.setPreviousStatement(!0);this.setNextStatement(!0);this.setTooltip(Blockly.Msg.LISTS_SET_INDEX_TOOLTIP);this.updateAt_(!0);var b=this;this.setTooltip(function(){var a=b.getFieldValue("MODE")+"_"+b.getFieldValue("WHERE");return Blockly.Msg["LISTS_SET_INDEX_TOOLTIP_"+a]})},
mutationToDom:function(){var a=document.createElement("mutation"),b=this.getInput("AT").type==Blockly.INPUT_VALUE;a.setAttribute("at",b);return a},domToMutation:function(a){a="false"!=a.getAttribute("at");this.updateAt_(a)},updateAt_:function(a){this.removeInput("AT");this.removeInput("ORDINAL",!0);a?(this.appendValueInput("AT").setCheck("Number"),Blockly.Msg.ORDINAL_NUMBER_SUFFIX&&this.appendDummyInput("ORDINAL").appendField(Blockly.Msg.ORDINAL_NUMBER_SUFFIX)):this.appendDummyInput("AT");var b=new Blockly.FieldDropdown(this.WHERE_OPTIONS,
function(b){var d="FROM_START"==b||"FROM_END"==b;if(d!=a){var e=this.sourceBlock_;e.updateAt_(d);e.setFieldValue(b,"WHERE");return null}});this.moveInputBefore("AT","TO");this.getInput("ORDINAL")&&this.moveInputBefore("ORDINAL","TO");this.getInput("AT").appendField(b,"WHERE")}};
Blockly.Blocks.lists_getSublist={init:function(){this.WHERE_OPTIONS_1=[[Blockly.Msg.LISTS_GET_SUBLIST_START_FROM_START,"FROM_START"],[Blockly.Msg.LISTS_GET_SUBLIST_START_FROM_END,"FROM_END"],[Blockly.Msg.LISTS_GET_SUBLIST_START_FIRST,"FIRST"]];this.WHERE_OPTIONS_2=[[Blockly.Msg.LISTS_GET_SUBLIST_END_FROM_START,"FROM_START"],[Blockly.Msg.LISTS_GET_SUBLIST_END_FROM_END,"FROM_END"],[Blockly.Msg.LISTS_GET_SUBLIST_END_LAST,"LAST"]];this.setHelpUrl(Blockly.Msg.LISTS_GET_SUBLIST_HELPURL);this.setColour(Blockly.Blocks.lists.HUE);
this.appendValueInput("LIST").setCheck("Array").appendField(Blockly.Msg.LISTS_GET_SUBLIST_INPUT_IN_LIST);this.appendDummyInput("AT1");this.appendDummyInput("AT2");Blockly.Msg.LISTS_GET_SUBLIST_TAIL&&this.appendDummyInput("TAIL").appendField(Blockly.Msg.LISTS_GET_SUBLIST_TAIL);this.setInputsInline(!0);this.setOutput(!0,"Array");this.updateAt_(1,!0);this.updateAt_(2,!0);this.setTooltip(Blockly.Msg.LISTS_GET_SUBLIST_TOOLTIP)},mutationToDom:function(){var a=document.createElement("mutation"),b=this.getInput("AT1").type==
Blockly.INPUT_VALUE;a.setAttribute("at1",b);b=this.getInput("AT2").type==Blockly.INPUT_VALUE;a.setAttribute("at2",b);return a},domToMutation:function(a){var b="true"==a.getAttribute("at1");a="true"==a.getAttribute("at2");this.updateAt_(1,b);this.updateAt_(2,a)},updateAt_:function(a,b){this.removeInput("AT"+a);this.removeInput("ORDINAL"+a,!0);b?(this.appendValueInput("AT"+a).setCheck("Number"),Blockly.Msg.ORDINAL_NUMBER_SUFFIX&&this.appendDummyInput("ORDINAL"+a).appendField(Blockly.Msg.ORDINAL_NUMBER_SUFFIX)):
this.appendDummyInput("AT"+a);var c=new Blockly.FieldDropdown(this["WHERE_OPTIONS_"+a],function(c){var e="FROM_START"==c||"FROM_END"==c;if(e!=b){var f=this.sourceBlock_;f.updateAt_(a,e);f.setFieldValue(c,"WHERE"+a);return null}});this.getInput("AT"+a).appendField(c,"WHERE"+a);1==a&&(this.moveInputBefore("AT1","AT2"),this.getInput("ORDINAL1")&&this.moveInputBefore("ORDINAL1","AT2"));Blockly.Msg.LISTS_GET_SUBLIST_TAIL&&this.moveInputBefore("TAIL",null)}};
Blockly.Blocks.lists_split={init:function(){var a=this,b=new Blockly.FieldDropdown([[Blockly.Msg.LISTS_SPLIT_LIST_FROM_TEXT,"SPLIT"],[Blockly.Msg.LISTS_SPLIT_TEXT_FROM_LIST,"JOIN"]],function(b){a.updateType_(b)});this.setHelpUrl(Blockly.Msg.LISTS_SPLIT_HELPURL);this.setColour(Blockly.Blocks.lists.HUE);this.appendValueInput("INPUT").setCheck("String").appendField(b,"MODE");this.appendValueInput("DELIM").setCheck("String").appendField(Blockly.Msg.LISTS_SPLIT_WITH_DELIMITER);this.setInputsInline(!0);
this.setOutput(!0,"Array");this.setTooltip(function(){var b=a.getFieldValue("MODE");if("SPLIT"==b)return Blockly.Msg.LISTS_SPLIT_TOOLTIP_SPLIT;if("JOIN"==b)return Blockly.Msg.LISTS_SPLIT_TOOLTIP_JOIN;throw"Unknown mode: "+b;})},updateType_:function(a){"SPLIT"==a?(this.outputConnection.setCheck("Array"),this.getInput("INPUT").setCheck("String")):(this.outputConnection.setCheck("String"),this.getInput("INPUT").setCheck("Array"))},mutationToDom:function(){var a=document.createElement("mutation");a.setAttribute("mode",
this.getFieldValue("MODE"));return a},domToMutation:function(a){this.updateType_(a.getAttribute("mode"))}};