add micropython pre-compiled files

This commit is contained in:
cuu 2025-04-18 14:27:26 +08:00
parent 4c65694629
commit 5013c7768b
8 changed files with 39 additions and 0 deletions

3
.gitmodules vendored
View File

@ -10,3 +10,6 @@
[submodule "Code/picocalc_kbd_tester/uthash"] [submodule "Code/picocalc_kbd_tester/uthash"]
path = Code/picocalc_kbd_tester/uthash path = Code/picocalc_kbd_tester/uthash
url = https://github.com/troydhanson/uthash.git url = https://github.com/troydhanson/uthash.git
[submodule "Bin/MicroPython/PicoCalc-micropython-driver"]
path = Bin/MicroPython/PicoCalc-micropython-driver
url = https://github.com/zenodante/PicoCalc-micropython-driver.git

@ -0,0 +1 @@
Subproject commit 58635637e7fddc743614d58818cf78f0b9425863

35
Bin/MicroPython/README.md Normal file
View File

@ -0,0 +1,35 @@
# MicroPython for PicoCalc
Here is pre-compiled uf2 files for micropython running on PicoCalc based on [PicoCalc-micropython-driver](https://github.com/zenodante/PicoCalc-micropython-driver)
- micropython_pico.uf2
- micropython_pico2.uf2
- micropython_pico2w.uf2
These uf2 files already included main.py ,so just put into PicoCalc , you will get a python running terminal immediately
No need to use Thonny , for those who interest to try python.
For developers, just visit [PicoCalc-micropython-driver](https://github.com/zenodante/PicoCalc-micropython-driver)
Follow the readme to
- Flash firmware and upload python code through Thonny IDE.
- Compile custom micropython firmware for picocalc.
Here is the Sequence for beginners to run python on Pico with PicoCalc:
1. Put pico into BOOTSEL mode.
2. Flash correct firmware uf2 file included all necessary python module.
3. Open Thonny at the mean time, config Interpreter with correct kind and port (usuall /dev/ttyACM0 on linux).
4. Upload main.py( this is the entry boot up python file) and other py files to /. from left sidebar.
5. Do nothing but wait for uploading finished,then unplug the Micro-usb cable from pico.
6. Plug USB-C cable into PicoCalc and Power On to see if everything goes right.
here is the sample screenshots about thonny:
![interpreter](https://github.com/clockworkpi/PicoCalc/blob/master/wiki/micropython_thonny_config.png)
![micropython](https://github.com/clockworkpi/PicoCalc/blob/master/wiki/micropython_thonny.png)

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
wiki/micropython_thonny.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 112 KiB