galaxyrider
Posts: 33
Joined: Sat Dec 26, 2015 2:36 pm

Scratch and Astro Pi.

Sun Jan 03, 2016 1:03 pm

I am trying to run this Scratch program but it's not doing anything on the Sense Hat. I know its working because I can run other programs on it. I have RPi 2. with latest Raspian installed. I've updated and upgraded.

https://github.com/miltonio94/Mozfest-2 ... e-of-space

Thanks.

timrowledge
Posts: 1354
Joined: Mon Oct 29, 2012 8:12 pm
Location: Vancouver Island
Contact: Website

Re: Scratch and Astro Pi.

Sun Jan 03, 2016 7:28 pm

Are you certain you're running ScratchGPIO7 - Simon's Python program that acts as a server for Scratch gpio - as downloaded from http://simplesi.net/scratchgpio/scratch ... rypi-gpio/ ?
Making Smalltalk on ARM since 1986; making your Scratch better since 2012

ghp
Posts: 1596
Joined: Wed Jun 12, 2013 12:41 pm
Location: Stuttgart Germany
Contact: Website

Re: Scratch and Astro Pi.

Sun Jan 03, 2016 7:56 pm

Hello,

think there are many ways to talk to senseHat:
- scratchgpio
- scratchClient
- gpioserver

gpioserver is build into current scratch on raspberry, supports sensors from senseHat but not setting LED individually.
See https://www.raspberrypi.org/documentati ... /README.md

scratchClient is an external python program which supports sensors and setting LED. See http://heppg.de/ikg/wordpress/?p=615 for an intro.

scratchgpio is an external tool which is maintained on http://simplesi.net/scratchgpio/. You need to look for help there.

Regards,
Gerhard (author of scratchClient)

galaxyrider
Posts: 33
Joined: Sat Dec 26, 2015 2:36 pm

Re: Scratch and Astro Pi.

Tue Jan 05, 2016 7:49 pm

Thanks for your replies. I took Tim's advice and it now works.

Return to “Scratch”