Skip to main content

# 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.

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.5.5.tar.gz (62.7 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for scratch-ext-0.5.5.tar.gz
Algorithm Hash digest
SHA256 798097ca6e5953bb715266964d6aa91bb1be4cf55335b044c54bf9d7459913fa
MD5 85e828fe30a656a9c80fa9dd53061c46
BLAKE2b-256 447ad8b67bb7b9af95e06b2271350e8e8838bcac9395a1e6bda7ce7e5d030acd

See more details on using hashes here.

Release history Release notifications | RSS feed

0.7.6

1 file

0.7.5

1 file

0.6.1

1 file

This release

0.5.5 This release

1 file

0.5.4

1 file

0.5.3

1 file

0.5.2

1 file

0.5.1

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page