Skip to main content

Access external Scratch sensors and endpoints through python

Project description

# scratch-ext Access external locations (eg: GPIO) from scratch on the Raspberry Pi

# Running Clone the repo (or download the .tar.gz). Move the .desktop file to your desktop, and start from there, or run from a terminal inside X:

` bash ./startup.sh `

# Usage For now you can use the standard GPIO pins, broadcast a message in Scratch, saying pin 11 on will turn pin 11 high, pin 11 off will turn it low. You can also use pin 11 1, pin 11 high, etc. gpio is an alias for the ping command (eg gpio 11 on).

The script will update any changes in the gpio pins to the standard Scratch sensors. Open the ‘sensing’ tab, and select the pin you want to read from the list. This will return a 1 when high, and a 0 when low.

# Writing plugins Add a .py file to the plugins dir, extend from plugin base, and implement the receive method, see the ExamplePlugin for an example.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scratch-ext-0.7.6.tar.gz (63.6 kB view details)

Uploaded Source

File details

Details for the file scratch-ext-0.7.6.tar.gz.

File metadata

  • Download URL: scratch-ext-0.7.6.tar.gz
  • Upload date:
  • Size: 63.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for scratch-ext-0.7.6.tar.gz
Algorithm Hash digest
SHA256 cd9475e6ef4daea3cef64f2b7aba688c3a8e4bdbd60c67abc3f0d763d62b66b5
MD5 67658b96cd0b1ee5e5b99e8ebaff5118
BLAKE2b-256 385f59340bf97a7a28aceb35928b22d5fb6abed2f8bee9e7b80ee6cda6d3a055

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page