Closed sobreira closed 6 years ago
Hi Edson, posting here is appropriate. Can you please give me some more detail how about this works? What I am asking is, is there a single instance of Scratch controlling both the Arduino and the micro:bit or 2 separate instances? What is the mechanism for both boards to communicate with each other? Thanks
Hi Alan, I have already combined 3 Strach extenstions S2aio and S2m and ScratcherControl (Android). As I changed the port in my local file 50209 for S2aio and 50210 for S2m, I can have a single instance of Scratch and I can connect Arduino and S2m at the same time. Following one example about micro:bit sending data to Scratch and change the Servo position: (sorry to be in pt-br)
Thanks!
Ok, I now see how you did it. I am not going to change the port number because if I do, if some users have saved their Scratch projects and try to run them again, they will not work. I will be leaving things as is. Also, I do not how I would bring up everything automatically for users that want both Arduino and micro:bit.
I am closing this issue, but if you have any other questions, you can post them here and I will see them even though the issue is closed.
Hi Alan, not sure if I have to use this channel to give a suggestion....sorry in case not.
I would like to suggest you to change the server port of file s2m_http_server.py from 50209 to 50210. That will be nice in case a user want to combine extensions (Arduino and micro:bit). So an Arduino can communicate to micro:bit via Scratch and vice versa. I have changed my local file and worked fine for this purpose. Thanks!