Skip to content

Latest commit

 

History

History
34 lines (26 loc) · 1.56 KB

README.md

File metadata and controls

34 lines (26 loc) · 1.56 KB

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.