Scratch 3 controlling Raspberry PI GPIO pins Goto http://simplesi.net/s3gpio to setup your Raspberry Pi if you'd like to try these blocks in action
Thanks to David Ferguson for development help and Philippe Minnerve, Sarah Lacaze, Laurence Molloy and Alan Yorinks for testing