A web-based PyREPL interface for MicroPython microprocessors
For a live demo, visit: https://pyrepl.web.app/
GitHub Pages Version: https://tuftsceeo.github.io/PyREPLforSPIKE/build/index.html
PyREPL for SPIKE is a web-based platform to interact with the REPL on a LEGO SPIKE Prime Hub. The application allows users to write MicroPython directly to a SPIKE Hub and log output to a live console using a graphical user interface.
- Open the PyREPL Web App on a supported web browser.
- Supported browsers: Google Chrome, Microsoft Edge, Opera.
- Connect your MicroPython device to PyREPL by clicking the red button on the upper right hand side of the window.
- The application currently supports wire (USB) and some bluetooth connections.
- Write MicroPython code using the text editor on the left half of the screen.
- Run your code on the connected device using the blue play button on the upper right hand side of the window.
Note: PyREPL was built using React
- Download Code
- In a command prompt/terminal, change the working directory (cd) to the PyREPLforSPIKE directory. For example, if saved the code inside your Downloads folder, the command would be
cd Downloads/PyREPLforSPIKE
- Run
npm install
. Requires NodeJS. Runnpm --version
to check if you have NodeJS installed. - To start the development server, run
npm start
. You're now ready to start editing the project! - When you have a production ready version ready to be published run
npm run build
to make a static production build.
This project created by the Tufts Center for Engineering Education and Outreach (CEEO).
For more innovations from the Tufts CEEO, visit: https://www.ceeoinnovations.org/