Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/retiredwizard/cardputer_repl
M5Stack Cardputer Virtual REPL
https://github.com/retiredwizard/cardputer_repl
cardputer circuitpython esp32-s3 m5stack m5stack-cardputer
Last synced: 4 months ago
JSON representation
M5Stack Cardputer Virtual REPL
- Host: GitHub
- URL: https://github.com/retiredwizard/cardputer_repl
- Owner: RetiredWizard
- Created: 2024-03-11T09:00:21.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-09-15T16:36:03.000Z (5 months ago)
- Last Synced: 2024-10-09T22:41:11.065Z (4 months ago)
- Topics: cardputer, circuitpython, esp32-s3, m5stack, m5stack-cardputer
- Language: Python
- Homepage:
- Size: 153 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cardputer_repl
M5Stack Cardputer Virtual REPL**Starting with CircuitPython 9.1.0-beta.1, this functionality has been merged into the CircuitPython core and this software should not be used. [PyDOS](https://github.com/RetiredWizard/PyDOS) now fully supports the Cardputer as well.**
Copying code.py and the /lib/ folder from this repository to the M5Stack [Cardputer](https://shop.m5stack.com/products/m5stack-cardputer-kit-w-m5stamps3) will present a virtual REPL on the device keyboard when it boots. Using the FN key there are up/down/left/right keys for accessing the command line history and edit functions.
In order to enable Cardputer keyboard input in python scripts add the following block of code to the import section of your code:
```py
try:
from cardputer_repl import input
except:
pass
```
The Virtual REPL will treat a file named virtcode.py in the root directory ('/') the way the native REPL treats a code.py file, that is it will be executed within the Virtual REPL when the Microcontroller is powered up or reset. When the virtcode.py program exits the Virtual REPL will take over control.