Smart Blocks work for EV3, SPIKE™, Zappy, and Ruby!
Smart Blocks are blockly functions that you can create for yourself to be used in any other project or mission. They can include any code you like, preferably snippets of code you use often in many CoderZ missions and/or projects.
Tips and Tricks:
- Once you create a Smart Block, it becomes a part of your profile and will go with you wherever you go.
- You can also import existing Smart Blocks to your code for easy access.
- Editing, changing, clearing or deleting Smart Blocks in one mission or project will result in the same action being performed throughout your user. Tread with caution!
Check out the video tutorial on YouTube!
In the example below we created a Smart Block that will make the robot turn 90 degrees to the right.
Here it is being used in code, that drives the robot in a square: