Skip to main content

A wrapper around Pimoroni's `interstate75` library which allows for running locally and easier testing.

Project description

i75

Pipeline PyPI version PyPI - Downloads Coverage Status Documentation Status

A wrapper around Pimoroni's interstate75 library which allows for running locally and easier testing.

This library provides a module, i75, which contains additional useful functionality over what is provided by MicroPython and the Pimoroni libraries. For full details, please read the documentation.

This library also provides a script, i75, which is used when running programs on a normal PC for testing purposes. This is done by a set of modules which replicate the functionality of the native Interstate75(W) hardware, in particular using PyGame to represent a Hub75 LED matrix.

This emulation is far from perfect but hopefully allows a quicker development cycle than deploying to the physical hardware. In particular, problems may include:

  • Full Python3.x is used, so syntactic and semantic differences with MicroPython won't be picked up.
  • Your PC is many times more powerful than the RP2040 chip, so CPU limits won't be picked up.
  • Our emulation of built-in functionality may be incomplete or incorrect.
  • Sensors or additional hardware are not emulated.

Any help improving these limitations is most welcome. Please see CONTRIBUTING.md for more details.

Installation

To install this library either check it out from GitHub or install it from PyPI.

git checkout https://github.com/andrewjw/i75.git
cd i75
sudo python3 setup.py install

or

pip3 install i75

Running On A PC

To run your script simply follow i75 with the path to your script. There are examples provided in the examples directory, which can be run as follows.

i75 examples/clock/clock.py

Running On Interstate75

To install the library on your Interstate75 run install.sh. This will create an i75 directory on the Raspberry Pi Zero, and copy across the required files.

Install your script in the normal way, e.g.

ampy examples/clock/clock.py main.py

For ampy to work you need to tell it the correct device to use to communicate with Raspberry Pi Pico. To do that either run install.sh -p /dev/tty.usbmodemN or set the AMPY_PORT environment details. For more details about ampy, check out their documentation.

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

i75-1.14.0.tar.gz (32.3 kB view details)

Uploaded Source

Built Distribution

i75-1.14.0-py3-none-any.whl (53.6 kB view details)

Uploaded Python 3

File details

Details for the file i75-1.14.0.tar.gz.

File metadata

  • Download URL: i75-1.14.0.tar.gz
  • Upload date:
  • Size: 32.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for i75-1.14.0.tar.gz
Algorithm Hash digest
SHA256 8401a7492e7f92f8d1f244a67b4c4d1dc90aa88fa0abb886287950e7135547d3
MD5 579e54711a4ad37fd2c9dc8fb5f2ab61
BLAKE2b-256 50e411286863dcec0b13a1f8da6a7dfc5e9dbfce8fadfd7841888f19c3c74abf

See more details on using hashes here.

File details

Details for the file i75-1.14.0-py3-none-any.whl.

File metadata

  • Download URL: i75-1.14.0-py3-none-any.whl
  • Upload date:
  • Size: 53.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.11.10

File hashes

Hashes for i75-1.14.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a21c374dd3fa3de5102769a6150d7617dab16c2e539e7abe8daaca7b06510711
MD5 35c32aa57b0807d1d2b2dab238ed74dc
BLAKE2b-256 97d9685674fa86f9d9b3ce7621429fe0b6c03b493ec6299c7d89982419dceef0

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