Skip to content

Commit

Permalink
pwm set frequency fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ioanaculic committed Nov 5, 2024
1 parent 71c2281 commit bf47b82
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ module.exports = function (blockly) {
var frequency = Blockly.Python.valueToCode(block, 'frequency', Blockly.Python.ORDER_ATOMIC);
var pin_name = block.getFieldValue('pin_name').toString();

var code = pin_name + '.frequency(' + frequency + ')\n';
var code = pin_name + '.freq(' + frequency + ')\n';
return code;
};

Expand Down

0 comments on commit bf47b82

Please sign in to comment.