Conversation
the variables seen in the dropdown Conflicts: blockly/blockly4Arduino/index.html blockly/blockly4Arduino/index_en.html
Step 1: the block Todo: onchange for errors in block & generator
Don't update board if it did not change
existing stepper block
Conflicts: blockly/msg/json/nl.json blockly/msg/messages.js
|
Added extra components so as to cover all bases:
Ideally for me you agree to this component idea. In my view, it is not required for a GUI that builds upon the blockly core to expose all blocks present. It is possible to not include component blocks. The idea of components will be nice for some use cases. However, to mix component and not components is not a good idea in my opinion. So in my version, I don't expose the stepper init block which is not a component, leaving only the component way of adding a stepper. NOTE: You will see I call my normal code blocks ARD_BLOCK, as in |
|
Wow, this is a rather large PR, that might take me a while to find some time to have a look properly. I won't be free until the weekend of the 20th, and I doubt I'll have much time after work during the week. My plan is to prioritize #73 first, as it's been a while since it's open. I want to play with the idea of creating this "instance of things" based on variables to be able to separate objects. |
|
Yes, it needs #73 so however that evolves I must reintegrate here. Then I want to have a component for a distance sensor, which also needs two pins like stepper (though it can be programmed too via pulseIn and normal functions I assume). If you want to play around with the new blocks without adding them to ardublockly GUI (as that is not in this PR), they are all present on my version online. |
This branch builds upon #73 to offer component blocks:
I'm working on a pushbutton as a component, then a generic digital and analog sensor.
In my branch digitalread/write is possible on variables. In default ardublockly not. So to have components really useful, some way to use the generic variable names in analog/digital read/write is needed too, perhaps a version of #70, or some other way.
Example use: http://ingegno.be/Manuals/Blockly4Arduino/blockly4Arduino/index.html?url=examples/BlinkNoDelay_nl.xml