Blockly save() function #295
Replies: 1 comment
-
Posted at 2014-07-21 by @gfwilliams I'd be really wary about actually calling the
And Having said all that, I just tried what you said (except I changed If that's the case I'd really suggest you try and find a way of putting those timeouts inside the Now I've added the functions tab it's as easy as just creating a new function block and calling it |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2014-07-21 by rsm
I need some help writing a save() block in blockly. This code moves the servo on pin B14 to two positions 0.5 seconds apart then saves it to the microcontroller so the code executes next time I plug it in. This code works when I write it in the JavaScript window:
Similarly, this code works to call the first two lines from a Blockly block, so I know I'm doing all of that correctly:
But as soon as I call the save() command from Blockly by changing line 18 to:
then the block does nothing. Meaning, the servo doesn't move, and there's no indication that anything was sent to the board. The frustrating part is that when I click on the command prompt side of the IDE and press up to see the commands sent, I see all three of the commands that I wanted to see:
Please help,
Rehman
Beta Was this translation helpful? Give feedback.
All reactions