Code for scratch_gpio_handler
Python Shell
Latest commit 832b0cf Aug 4, 2014 @cymplecy cymplecy Hotfix PiRoConB motors
Permalink
Failed to load latest commit information.
.idea minor changes May 21, 2014
installer Hotfix PiRoConB motors Aug 4, 2014
mcpi Stable updated from dev 5.1.25 Apr 25, 2014
.gitignore Update folling SD Card restore Oct 5, 2013
5plusscratchgpio.sh I2C bug sorted with standard start Apr 20, 2014
5scratchgpio5.sh I2C bug sorted with standard start Apr 20, 2014
Adafruit_I2C.py Stable updated from dev 5.1.25 Apr 25, 2014
Adafruit_PWM_Servo_Driver.py Stable updated from dev 5.1.25 Apr 25, 2014
README.md Stable updated from dev 5.1.25 Apr 25, 2014
c9rpke4 update stable with dev branch Apr 22, 2013
ds.sh Support for DS180 temp sensor added Jan 17, 2014
ex_8x8_pixels.py Reset master branch following merge from dev Dec 5, 2013
install_scratchgpio.sh Stable updated from dev 5.1.25 Apr 25, 2014
install_scratchgpio5.sh Hotfix PiRoConB motors Aug 4, 2014
install_scratchgpio5rspbt2.sh Stable updated from dev 5.1.25 Apr 25, 2014
isgh5.sh installer updated Apr 29, 2014
isgh5dev.sh Stable updated from dev 5.1.25 Apr 25, 2014
killsgh.sh Major restructe fro Scratch GPIO4 Nov 21, 2013
scratchgpio5.sh I2C bug sorted with standard start Apr 20, 2014
scratchgpio_handler5.py Hotfix PiRoConB motors Aug 4, 2014
sgh_Adafruit_8x8.py
sgh_Adafruit_LEDBackpack.py 5dev updated with debugging i2c problem Apr 20, 2014
sgh_GPIOController.py ??? May 31, 2014
sgh_InputTest.py Reset master branch following merge from dev Dec 5, 2013
sgh_Minecraft.py Stable updated from dev 5.1.25 Apr 25, 2014
sgh_PCF8591P.py Stepper code fully working Nov 26, 2013
sgh_PiGlow.py Fixed PiGlow bug Jan 2, 2014
sgh_PiMatrix-old.py PiMAtrix Added Jan 26, 2014
sgh_PiMatrix.py Matrxi stuff updated Jan 28, 2014
sgh_PiMatrxi.py PiMAtrix Added Jan 26, 2014
sgh_PiMatrxiTh.py PiMAtrix Added Jan 26, 2014
sgh_RasPiCamera.py Pi2Go Ultra automatic May 23, 2014
sgh_Stepper.py Stepper code fully working Nov 26, 2013
sgh_Turn.py Reset master branch following merge from dev Dec 5, 2013
sgh_servod Major restructe fro Scratch GPIO4 Nov 21, 2013
t2.py PiMatrix added Feb 2, 2014
temptest.py fix servod path issue Jan 15, 2014
temptest2.py Support for DS180 temp sensor added Jan 17, 2014
test8591.py Stable updated from dev 5.1.25 Apr 25, 2014
thymioscratchgpio_handler4.py
tthymioscratchgpio_handler4.py thymio update Feb 15, 2014
xscratchgpio_handler4.py encoders started adding for PiRoCon1.2 Dec 30, 2013

README.md

ScratchGPIO : a Python-Scratch handler for Raspberry Pi

This is the source of a Raspberry Pi GPIO handler for Scratch. It acts as a go-between between Scratch and the GPIO pins and lets you use simple Scratch broadcasts such as "Pin11On" or "AllOff" to allow you to control LEDs

It understands a number of variable names usch as "set Power11 to 50" which will effectively set Pin11 to half power "set Power12 to 100" will set Pin12 to full power.

it also has support for up to three, cheap, 5 wire unipolar stepper motors and cheap Ultrasonic boards which makes it very acheivable to program up maze solving robots using Scratch!

The code is being activley developed but the code in this folder is considered stable. The dev branch contains my day to day changes.

Usage

I maintain full download, install and usuage instructions in this blog http://cymplecy.wordpress.com/scratchgpio

The code and installer in this folder are the same version as the ones linked to in the blog.

Issues & Fixes

Please file any issues and feel free to submit pull requests