MrYsLab / s2a_fm

A Scratch Hardware Extension For Arduino
GNU General Public License v3.0
104 stars 64 forks source link

Some Scratch commands stop working after using custom blocks #2

Closed davidalcoba closed 10 years ago

davidalcoba commented 10 years ago

file loaded: s2a_fm_base

A script containing custom blocks (enable digital pin and digital writes) headed by a green flag only works when clicking the whole block but not the green flag. Same happens with other green flag blocks. Also it is not possible to open or create a new file without closing first the application.

Versions:

MrYsLab commented 10 years ago

I apologize for the problem, but unfortunately this is a bug in Scratch that I had hoped would be addressed by now, but has not. I encourage you to report this as a bug to the Scratch team. There are other bugs as well - if there are command blocks in a loop, the loop may only execute once and then quit.

You may wish to try Snap! ( http://snap.berkeley.edu/) that is similar to Scratch. It does not exhibit this behavior.

If you have any further issues or questions, please don't hesitate to contact me.

Thanks, Alan

On 01/22/2014 07:02 PM, deivkk wrote:

file loaded: s2a_fm_base

A script containing custom blocks (enable digital pin and digital writes) headed by a green flag only works when clicking the whole block but not the green flag. Same happens with other green flag blocks. Also it is not possible to open or create a new file without closing first the application.

Versions:

  • OSX 10.9.1
  • Arduino UNO with Standard Firmata uploaded.
  • Scratch 2 v385
  • Python 2.7.6

— Reply to this email directly or view it on GitHub https://github.com/MrYsLab/s2a_fm/issues/2.

davidalcoba commented 10 years ago

Thanks Alan!

I will report this bug to the Scratch team because I'm really interested on this. I'm teaching Scratch to kids and it would be awesome to connect it to Arduino. Snap is also a good choice but they are not used to it and I don't know if it will work for them.

I also detected the problem with the commands within a loop but there is hack moving them inside "when i receive message" blocks. I guess this has something to how Scratch handles the broadcast message creating new threads that don't block the main one.

Thanks,

David

On Thu, Jan 23, 2014 at 2:06 AM, Alan Yorinks notifications@github.comwrote:

I apologize for the problem, but unfortunately this is a bug in Scratch that I had hoped would be addressed by now, but has not. I encourage you to report this as a bug to the Scratch team. There are other bugs as well - if there are command blocks in a loop, the loop may only execute once and then quit.

You may wish to try Snap! ( http://snap.berkeley.edu/) that is similar to Scratch. It does not exhibit this behavior.

If you have any further issues or questions, please don't hesitate to contact me.

Thanks, Alan

On 01/22/2014 07:02 PM, deivkk wrote:

file loaded: s2a_fm_base

A script containing custom blocks (enable digital pin and digital writes) headed by a green flag only works when clicking the whole block but not the green flag. Same happens with other green flag blocks. Also it is not possible to open or create a new file without closing first the application.

Versions:

  • OSX 10.9.1
  • Arduino UNO with Standard Firmata uploaded.
  • Scratch 2 v385
  • Python 2.7.6

— Reply to this email directly or view it on GitHub https://github.com/MrYsLab/s2a_fm/issues/2.

— Reply to this email directly or view it on GitHubhttps://github.com/MrYsLab/s2a_fm/issues/2#issuecomment-33087636 .