Create Custom Blocks

  • While connected to Erle-Brain 2 go to http://erle-brain-2.local/blockly/demos/blockfactory/index.html.
  • Design you own block. To do so, use the Block Factory to design custom blocks. Language templates for a custom block and its associated code generator can be created on this page. The left hand side of the screen contains code blocks for setting options of a new custom block. A preview of the new block displays on the upper right hand side of the screen. Below that is a template for the block’s code and the generated Python.
  • Add the metadata to: frontend/blockly/blocks and frontend/blockly/generator
  • Launch python to regenerate the blocks.