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