BlocklyDuino

73 views
Skip to first unread message

Jonathan neira balcazar

unread,
Aug 9, 2018, 11:16:29 AM8/9/18
to Blockly

Someone who has worked with BlocklyDuino is making me a bit complicated to create a new Block. If they have done it, they would be very grateful.

Andrew n marshall

unread,
Aug 9, 2018, 5:27:03 PM8/9/18
to blo...@googlegroups.com
I haven't created BlocklyDuino blocks myself, but here is what I can pick up by going through their code:

  • Block definitions are in JavaScript format (possibly using defineBlocksWithJsonArray) in the block/blocks directory.  Any .js file in this directory will be picked up by the build script (here) so I recommend starting your own files.
  • The toolbox is defined at the bottom of blockly/apps/blocklyduino/index.html.
  • The code generation functions are defined in blockly/generators/arduino.
  • After adding the JavaScript in the right places, you'll need to execute blockly/build.py to update the blocks_compress.js and arduino_compressed.js files.
On Thu, Aug 9, 2018 at 8:16 AM, Jonathan neira balcazar <jonathan...@gmail.com> wrote:

Someone who has worked with BlocklyDuino is making me a bit complicated to create a new Block. If they have done it, they would be very grateful.

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Jonathan neira balcazar

unread,
Aug 9, 2018, 5:43:14 PM8/9/18
to blo...@googlegroups.com
Thanks, Andrew  

To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Blockly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blockly+u...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.


--
Nombre: Jonathan Ezequiel Neira Balcázar 
Celular: 0997991524 
Ingeniero en Sistemas
Reply all
Reply to author
Forward
0 new messages