Skip to content

Commit

Permalink
Minor updates to block wording.
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosperate committed Feb 21, 2016
1 parent e2f462f commit 1856f76
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion blockly/blocks/arduino/io.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Blockly.Blocks['io_digitalwrite'] = {
this.setInputsInline(false);
this.setPreviousStatement(true, null);
this.setNextStatement(true, null);
this.setTooltip('Write digital value to a specific Port.');
this.setTooltip('Write digital value to a specific pin.');
},
/**
* Updates the content of the the pin related fields.
Expand Down
2 changes: 1 addition & 1 deletion blockly/blocks/arduino/procedures.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Blockly.Blocks['arduino_functions'] = {
*/
init: function() {
this.appendDummyInput()
.appendField('Arduino run once:');
.appendField('Arduino run first:');
this.appendStatementInput('SETUP_FUNC');
this.appendDummyInput()
.appendField('Arduino loop forever:');
Expand Down
4 changes: 2 additions & 2 deletions blockly/blocks/arduino/servo.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Blockly.Blocks['servo_write'] = {
this.setHelpUrl('http://arduino.cc/en/Reference/ServoWrite');
this.setColour(Blockly.Blocks.servo.HUE);
this.appendDummyInput()
.appendField('Set SERVO from Pin')
.appendField('set SERVO from Pin')
.appendField(new Blockly.FieldDropdown(
Blockly.Arduino.Boards.selected.pwmPins), 'SERVO_PIN');
this.setInputsInline(false);
Expand Down Expand Up @@ -63,7 +63,7 @@ Blockly.Blocks['servo_read'] = {
this.setHelpUrl('http://arduino.cc/en/Reference/ServoRead');
this.setColour(Blockly.Blocks.servo.HUE);
this.appendDummyInput()
.appendField('Read SERVO from PIN#')
.appendField('read SERVO from PIN#')
.appendField(new Blockly.FieldDropdown(
Blockly.Arduino.Boards.selected.pwmPins), 'SERVO_PIN');
this.setOutput(true, Blockly.Types.NUMBER.basicType);
Expand Down
4 changes: 2 additions & 2 deletions blockly/generators/arduino/io.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ goog.require('Blockly.Arduino');
Blockly.Arduino['io_digitalwrite'] = function(block) {
var pin = block.getFieldValue('PIN');
var stateOutput = Blockly.Arduino.valueToCode(
block, 'STATE', Blockly.Arduino.ORDER_ATOMIC) || '0';
block, 'STATE', Blockly.Arduino.ORDER_ATOMIC) || 'LOW';

Blockly.Arduino.reservePin(
block, pin, Blockly.Arduino.PinTypes.OUTPUT, 'Digital Write');
Expand Down Expand Up @@ -65,7 +65,7 @@ Blockly.Arduino['io_digitalread'] = function(block) {
Blockly.Arduino['io_builtin_led'] = function(block) {
var pin = block.getFieldValue('BUILT_IN_LED');
var stateOutput = Blockly.Arduino.valueToCode(
block, 'STATE', Blockly.Arduino.ORDER_ATOMIC) || '0';
block, 'STATE', Blockly.Arduino.ORDER_ATOMIC) || 'LOW';

Blockly.Arduino.reservePin(
block, pin, Blockly.Arduino.PinTypes.OUTPUT, 'Set LED');
Expand Down
1 change: 0 additions & 1 deletion blockly/generators/arduino/serial.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ Blockly.Arduino['serial_print'] = function(block) {
} else {
var code = serialId + '.print(' + content + ');\n';
}

return code;
};

Expand Down

0 comments on commit 1856f76

Please sign in to comment.