<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>I also had success playing with some Scratch-Python connections. Here's some notes I made experimenting with it a few months ago.</div><div><br></div><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div>Scratch (<a href="http://pihw.wordpress.com/lessons/rgb-led-lesson-2-scratch-gpio-getting-started/">http://pihw.wordpress.com/lessons/rgb-led-lesson-2-scratch-gpio-getting-started/</a>)</div><div><br></div><div>(playing with the scratch-gpio python hack)</div><div>sudo wget <a href="https://dl.dropbox.com/s/gery97qildl7ozd/install_scratch_gpio.sh">https://dl.dropbox.com/s/gery97qildl7ozd/install_scratch_gpio.sh</a> -O /boot/install_scratch_gpio.sh</div><div><br></div><div>sudo /boot/install_scratch_gpio.sh</div><div><br></div><div>This installs a new desktop icon "scratch-gpio", which, when clicked starts scratch and a python script "scratch_gpio_handler.py". Scratch connects to this python script over&nbsp;a tcp socket and receives scratch "broadcast" messages, which, if are "pin12high", "pin18off" type messages then the appropriate function from RPi.GPIO is invoked.</div><div><br></div><div>Note: had to update the python script "scratch_gpio_handler.py" to initialize GPIO as BCM instead of BOARD. Also added a new GPIO 23 as output. Note that the array GPIO_NUM isn't used at all ... not really sure what it is for since the entries in the PIN_NUM array are GPIO numbers themselves.</div><div><br></div><div>These guys appear to have even better support ... not just GPIO but I2C, SPI, etc</div><div><a href="http://www.pridopia.co.uk/rs-pi-set-scratch.html">http://www.pridopia.co.uk/rs-pi-set-scratch.html</a>&nbsp;</div><div><br></div></blockquote>There's also OSProcess. The plain Squeak interpreter that ships with recent raspian will work if you install OSProcess and OSShell. I used that to invoke pyhton scrips directly instead of over a socket.<div><br></div><div>With tons of help from Eliot and Tim I am currently adding support for ThreadedFFIPlugin for the pi's ARM (and hopefully other ARMs too). I'm hoping to have something basic ready in a couple of weeks.</div><div><br></div><div>Doug&nbsp;<br><blockquote class="webkit-indent-blockquote" style="margin: 0 0 0 40px; border: none; padding: 0px;"><div><br></div></blockquote><div><br></div><div><br></div><div><br></div><br><div><div>On Apr 11, 2014, at 07:23 , Herbert König wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>Hi,<br><br>how do I use the camera and do IO on the Pi from Squeak?<br><br>I managed to connect two Squeak images on the Pi via UDP so I think I could write (copy :-)) some python to do the IO and talk to Squeak via sockets.<br><br>Are there alternatives? Plugins? How does Scratch do it?<br><br>Thanks,<br><br>Herbert<br><br></div></blockquote></div><br></div></body></html>