Skip to content

A stripped down implementation of the Python Sense HAT package that works with Pyodide.

License

Notifications You must be signed in to change notification settings

RaspberryPiFoundation/sense_hat

Repository files navigation

Sense HAT

A stripped down implementation of the Python Sense HAT package that works with Pyodide.

This implementation is used in Raspberry Pi's Mission Zero code editor. If you are using Python on the command-line, you probably want to use the official python-sense-hat package instead.

Demo

Run ./bin/server then visit http://localhost:8000/demo-pyodide.html to see a demo of the sense_hat package. The program's output is shown underneath the textarea. The sense_hat configuration is shown in the top-right of the page. Errors are logged to the JavaScript console. The configuration is used to update the simulator's state.

Limitations

This package is a heavily modified version of python-sense-hat and many of the methods raise a NotImplementedError. This package will not work with a physical Sense HAT, only the simulator.

Code History

  1. The code originates from the python-sense-hat package.
  2. It was then modified to work with Skulpt in the editor-ui project's shims/ directory.
  3. It was then modified to work with Pyodide in the python-execution-prototypes project.

About

A stripped down implementation of the Python Sense HAT package that works with Pyodide.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published