diff --git a/.gitmodules b/.gitmodules index d4f8c5b..034249c 100644 --- a/.gitmodules +++ b/.gitmodules @@ -10,3 +10,6 @@ [submodule "Code/picocalc_kbd_tester/uthash"] path = Code/picocalc_kbd_tester/uthash 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 diff --git a/Bin/MicroPython/PicoCalc-micropython-driver b/Bin/MicroPython/PicoCalc-micropython-driver new file mode 160000 index 0000000..5863563 --- /dev/null +++ b/Bin/MicroPython/PicoCalc-micropython-driver @@ -0,0 +1 @@ +Subproject commit 58635637e7fddc743614d58818cf78f0b9425863 diff --git a/Bin/MicroPython/README.md b/Bin/MicroPython/README.md new file mode 100644 index 0000000..77445a8 --- /dev/null +++ b/Bin/MicroPython/README.md @@ -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) + + + diff --git a/Bin/MicroPython/micropython_pico.uf2 b/Bin/MicroPython/micropython_pico.uf2 new file mode 100644 index 0000000..ed56527 Binary files /dev/null and b/Bin/MicroPython/micropython_pico.uf2 differ diff --git a/Bin/MicroPython/micropython_pico2.uf2 b/Bin/MicroPython/micropython_pico2.uf2 new file mode 100644 index 0000000..07bb8ad Binary files /dev/null and b/Bin/MicroPython/micropython_pico2.uf2 differ diff --git a/Bin/MicroPython/micropython_pico2w.uf2 b/Bin/MicroPython/micropython_pico2w.uf2 new file mode 100644 index 0000000..c2cffda Binary files /dev/null and b/Bin/MicroPython/micropython_pico2w.uf2 differ diff --git a/wiki/micropython_thonny.png b/wiki/micropython_thonny.png new file mode 100644 index 0000000..13155f6 Binary files /dev/null and b/wiki/micropython_thonny.png differ diff --git a/wiki/micropython_thonny_config.png b/wiki/micropython_thonny_config.png new file mode 100644 index 0000000..e45b49e Binary files /dev/null and b/wiki/micropython_thonny_config.png differ