Is synchronizing espurino IDE possible? Board is MDBT42Q. #1373
Replies: 6 comments
-
Posted at 2020-03-24 by @gfwilliams Hi! You could try what we implement for the There's some hacky stuff going on but basically it's able to take the code that should have gone right after, and then put it inside a |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-24 by user110706 Thanks for reply, Gordon! Everything will be fine if there is a method that can verify if there is a nextBlock... |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-25 by @gfwilliams Just try it and see - there's some code further down that hooks into Blockly (which runs for all blocks) that detects that NEXTBLOCK text and re-arranges everything. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-25 by user110706 Thank you Gordon!
I wrote my code like this, and I know that NEXT_BLOCK works well. But I changed front-end for my project, so I can't use editor window. /upload.html
I know upload button use this function, so I add one line,
But it doesn't work. Is it possible to see uploaded codes at web ide's terminal?? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-25 by Robin Wed 2020.03.25
Is |
Beta Was this translation helpful? Give feedback.
-
Posted at 2020-03-27 by @gfwilliams
Maybe you could just try with a project where you haven't remove the editor window? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2020-03-24 by user110706
Hello.
My board is MDBT42Q, and it has some motors, IR sensor by i2c.
Everything is fine. Motors move well, IR sensors too.
But, my robot should move synchronous.
For example,
It is my code.
There's a block for initialize, and it's compressed by memory problem.
So just init once, and return function execution code.
(I don't know this is the best.)
Anyway, If there are two 'robot_move_angle' blocks, and time is 2 sec and 4sec,
user will think that it will move 2 sec, and after 2 sec, it will move 4 sec.
But unfortunately, there's a crack, because of javascript's asynchronous.
Is there a solution?
Beta Was this translation helpful? Give feedback.
All reactions