How to covert the Blocks to Arduino Language

793 views
Skip to first unread message

Hemanth B

unread,
May 12, 2021, 4:59:52 AM5/12/21
to Blockly
Hello All This is Hemanth B , I have create a Block but now I Have to convert That block into Arduino code is there any alternate ways to do that or is there any ways to convert javascript language to arduino

Message has been deleted

Beka Westberg

unread,
May 12, 2021, 5:44:51 PM5/12/21
to blo...@googlegroups.com
Hello,

Before I answer your question, it looks like you're sending separate emails to add new information, instead of replying to the same thread =) If you keep all of the information about one topic in the same thread, that helps keep this group more organized, and makes it easier for people to help you :D

Now, as for your question! There is no simple way to convert javascript to arduino code, or to get a block to generate arduino code. Arduino code is written in c++, which Blockly does not support by default. You'll have to define a custom language generator, and then define block-code generators for all of your blocks.

But don't fret! Other people have done this before, so someone else may reply to this thread with more info =)

I hope that gives you a place to start!
--Beka

On Wed, May 12, 2021 at 1:59 AM Hemanth B <pater...@gmail.com> wrote:
Hello All This is Hemanth B , I have create a Block but now I Have to convert That block into Arduino code is there any alternate ways to do that or is there any ways to convert javascript language to arduino

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/blockly/21319821-4817-41d4-8240-65af0865fc9dn%40googlegroups.com.

Hemanth B

unread,
May 13, 2021, 1:21:26 AM5/13/21
to Blockly
Thank you Very Much For Your Replies
Reply all
Reply to author
Forward
0 new messages