Skip to content

MicroPython + ST7789 Display Driver for LilyGo T-PicoC3 Display for both sides Release version 1.27.0-preview (Build release-20250829-0055)

Choose a tag to compare

@github-actions github-actions released this 29 Aug 00:55
· 6 commits to main since this release
30318da

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\activate

or

py -m venv esp-env
.\esp-env\Scripts\activate

Then install esptool:

pip install esptool

Put 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_flash

Then 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.bin

Linux:

python -m venv esp-env
source esp-env/bin/activate

Then install esptool:

pip install esptool

Put 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_flash

Then 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.bin

NOTE 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:

  1. Download the .uf2 file from the release.
  2. Press and hold the BOOT button on the RP2040 and press RESET button or connect it to your computer via USB.
  3. Release the button. The RP2040 will appear as a removable drive.
  4. Drag and drop the .uf2 file onto the drive..
  5. 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.