This is an add-on for the NuScratch package that provides a RaspberryPi specific GPIO server which works alongside the Scratch mesh network server; either or both can be used at any time.
This code is MIT licensed.
You also need the hardware support code at http://www.squeaksource.com/HardwarePeripherals.html (umm, you need to look at the 'RaspberryPi GPIO support' item in the list on the left. Not entirely sure where the naming differenec crept in.)