Scratch Library

I posted this yesterday over at the Scratch forum I guess I should share it here as well.

Its a library I created for making it easier to use the Arduino as a Scratch board without having use a proxy program. At the moment it only supports input so that you can emulate a Sensorboard but I want to add support for output, ideally without changing the Scratch Image

http://www.geekstudio.co.za/files/arduino/scratchlib/Scratch1.0.zip

and heres a simpletest scratch project:

http://www.geekstudio.co.za/files/arduino/scratchlib/arduino.sb

You just need to unzip into your libraries folder and import and possibly restart the IDE, once this is done you can run the Sensorboard example if you want to try it out quickly.

Inside Scratch you need to select the COM port your Arduino is using, this will be the Virtual COM port, and you right click on the block showing the variables and select the COM port that the Arduino is using.

If you aren't sure which port number that is because it changes sometimes, go into the Arduino IDE and check which port is selected there

I like your library,great work. I have not tried it now,but it will save my work to do with scratch.

Nice library. Does the button only work with the internal Pull-up resistor ? I would like to connect the button with a 10K resistor (pull-down). Because I'm teaching with it, I like to explain that part of electronics as well.

For the overview :
I've found another implementation as well from Yengawa systems.

Here the translated site :
http://translate.google.com/translate?js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&sl=auto&tl=en&u=http%3A%2F%2Fwww.yengawa.com%2Fscratch_arduino&act=url

You have to upload the .pde. The button pin is on digital pin 2 (more logical in my opinion, so you keep RX/TX free).

Next to this you can also program the arduino in a scratch way.
Scratch for Arduino : http://seaside.citilab.eu/scratch/arduino
and modkit : http://www.modk.it/

I didn't know what Scratch was.

Now I do! Smalltalk and Arduino. Things just don't get much better than that!