Commit 015d3594 authored by carlosperate's avatar carlosperate

Fix IO bug due to refactoring of variable names.

parent e10a5a89
......@@ -52,7 +52,7 @@ Blockly.Arduino['io_digitalwrite'] = function(block) {
*/
Blockly.Arduino['io_digitalread'] = function(block) {
var pinKey = block.getFieldValue('PIN');
var pinType = profile.default.pinTypes.INPUT;
var pinType = profile.default.pin_types.INPUT;
var setUpKey = 'setup_io_' + pinKey;
var pinMode = 'pinMode(' + pinKey + ', INPUT);';
var code = 'digitalRead(' + pinKey + ')';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment