MicroPython + ST7789 Display Driver for LilyGo T-PicoC3 Display for both sides Release version 1.27.0-preview (Build release-20250829-0055)
·
6 commits
to main
since this release
Automated release for MicroPython.
What we get here:
- MicroPython for TPico C3 ESP32 Side:
micropython.bin, bootloader.bin and partition-table.bin.
Instructions
You need to have some dependencies pre-instaled in your OS:
- Python 3
- Pip
- Python VENV
Windows:
python -m venv esp-env.\esp-env\Scripts\activateor
py -m venv esp-env.\esp-env\Scripts\activateThen install esptool:
pip install esptoolPut TPicoC3 in BOOTLOADER MODE(This is not really necesary):
- With USB cable on USB COM Port, press BOOT button then RST button, release RST, then release BOOT button. Or unplug, press BOOT button meanwhile you plug in the usb cable to PC or SBC like a Raspberry Pi.
Erase Flash:
Step for MicroPython .
python -m esptool --chip esp32c3 erase_flashThen Flash:
- Put 3 binaries in the same folder you are executing the steps, example Downloads folder, you need to be in that folder where are the binaries.
python -m esptool --chip esp32c3 -b 460800 --before default-reset --after hard-reset write-flash --flash-mode dio --flash-size 4MB --flash-freq 40m 0x1000 bootloader.bin 0x8000 partition-table.bin 0x10000 micropython.binLinux:
python -m venv esp-envsource esp-env/bin/activateThen install esptool:
pip install esptoolPut TPicoC3 in BOOTLOADER MODE:
- With USB cable on USB COM Port, press BOOT button then RST button, release RST, then release BOOT button. Or unplug, press BOOT button meanwhile you plug in the usb cable to PC or SBC like a Raspberry Pi.
Erase Flash:
Step for MicroPython.
python -m esptool --chip esp32c3 erase_flashThen Flash:
- Put 3 binaries in the same folder you are executing the steps, example Downloads folder, you need to be in that folder where are the binaries.
python -m esptool --chip esp32c3 -b 460800 --before default-reset --after hard-reset write-flash --flash-mode dio --flash-size 4MB --flash-freq 40m 0x1000 bootloader/bootloader.bin 0x8000 partition-table/partition-table.bin 0x10000 micropython.binNOTE IN WINDOWS:
- If you get a PowerShell Scripts Policy Execution Exception that don't let you activate the Virtual Environment:
.\esp-env\Scripts\activate- Then open a Terminal like Administrator and type:
Set-ExecutionPolicy Unrestricted- Close the Terminal now you can activate the Python Virtual Enmvironment
How to Flash the Firmware on T-Pico C3 Display Side
Windows, Linux:
- Download the .uf2 file from the release.
- Press and hold the BOOT button on the RP2040 and press RESET button or connect it to your computer via USB.
- Release the button. The RP2040 will appear as a removable drive.
- Drag and drop the .uf2 file onto the drive..
- The RP2040 will reboot and run MicroPython..
Examples Usage
Please use the examples located in the examples folder of the st7789_mpy repository.
New Examples in TPicoESPC3 module repo and remake to micropython vendor's codes.