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.
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.
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.
- The code originates from the python-sense-hat package.
- It was then modified to work with Skulpt in the editor-ui project's shims/ directory.
- It was then modified to work with Pyodide in the python-execution-prototypes project.