Knowledge Base

What are Smart Blocks?

output-onlinepngtools__231_.png  spike_robot.jpgSmart Blocks work for EV3, SPIKE™, Zappy, and Ruby!zappi1_flip.png  output-onlinepngtools__101_.png

Smart Blocks are blockly functions/procedures 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!

77688-logo-computer-youtube-icons-free-hq-image.png  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:

Was this article helpful?
2 out of 9 found this helpful

Comments

Please sign in to leave a comment.