Posts

Downloading Bitmap via WiFi with CircuitPython, Saving to Local File System, and Displaying on LCD using OnDiskBitmap.

In my previous post , I demonstrated basic exercises running on the Raspberry Pi Pico 2 W with CircuitPython 10.0.3, displaying graphics on a 1.28‑inch IPS module (GC9A01 + CST816S, 240×240 round, 4‑wire SPI) . In this post, I present exercises using CircuitPython 10.0.3 on the Raspberry Pi Pico 2 W to download a bitmap via WiFi, save it to the local file system, and display it on the GC9A01 LCD using OnDiskBitmap. The BMP in my test was resized and converted from JPG to BMP(240*240 RGB888) using FFmpeg . cpy_rpPicoW_gc9a01_OnDiskBitmap_wifi.py """ Raspberry Pi Pico 2 W/CircuitPython 10.0.3 with 1.28" 240x240 Round GC9A01 SPI IPS LCD Download bmp to local file system and display it using OnDiskBitmap ~ Single bmp. In this exercise, Pico 2 W download image from web server, save it on CircuitPython local filesystem, named "image.bmp, then display it on 1.28" 240x240 Round GC9A01 SPI IPS LCD using OnDiskBitmap. https://coxxect.blogspot.com/2026/01/downloa...

Resize and convert jpg/mp4 to bmp/gif using FFmpeg

Image
To resize and convert jpg to bmp/mp4 to gif using FFmpeg. Download and Install FFmpeg on Windows 11 1. Download FFmpeg • Go to the official FFmpeg download page ( https://www.ffmpeg.org/download.html ). • Get packages & executable files. • Choose a trusted Windows build provider (e.g., gyan.dev). • Download the archive ffmpeg-git-essentials.7z (this version is lightweight and sufficient for most users). • Extract the archive to a folder, for example:      C:\ffmpeg\ 2. Set Environment Variable PATH 1. In Windows search, type “Environment Variables” and open Edit the system environment variables. 2. In the “System Properties” window, click Environment Variables…. 3. In the User variables section, find Path → click Edit. 4. Add a new entry:      C:\ffmpeg\bin 5. Save and close. 3. Test Installation Open Command Prompt (CMD) or PowerShell, then type: ffmpeg -version R...

WeAct Studio Display FS 0.96 Inch

Image
WeAct Studio Display FS 0.96 Inch Or it can act as a 0.96" 80*160 USB Secondary Screen for Computer: System Monitor/Screen Projection. Software Download Link: https://sourceforge.net/projects/weact-studio-system-monitor/ https://sourceforge.net/projects/weact-studio-screen-projection/

1.28" 240x240 Round Display with GC9A01 SPI, on Raspberry Pi Pico 2 W.

Image
Exercises run on Raspberry Pi Pico 2 W /CircuitPython 10.0.3, to display on 1.28 inch IPS Module: GC9A01+CST816S 240*240(Round) 4W-SPI . Connection: Raspberry Pi Pico 2 W Run | GP22| ------- LCD_BLK ------------+ GND | | GP21| ------- LCD_DC ---------+ | GP20| ------- LCD_RES-------+ | | GP19| MOSI - SPI_SDA ----+ | | | GP18| SCK - SPI_SCL --+ | | | | GND | | | | | | GP17| SS - LCD_CS ---|-|-|-|-+ | GP16| MISO - no use | | | | | | --------+ | | | | | | | | | | | | | | | | | | GC9A01 | | | | | | | | | | | +---- BLK | | | | +------ CS | | | +-------- DC ...

1.28 inch IPS Module: GC9A01+CST816S 240*240(Round) 4W-SPI

Image
My display module: 1.28 inch IPS Module: GC9A01+CST816S 240*240(Round) 4W-SPI CircuitPython Exercises: ~  1.28" 240x240 Round Display with GC9A01 SPI, on Raspberry Pi Pico 2 W . ~  Downloading Bitmap via WiFi with CircuitPython, Saving to Local File System, and Displaying on LCD using OnDiskBitmap .

Python exercises to auto-play jpg and mp4

Image
The Python code listed below auto-play jpg and mp4 in "files" sub-folder, run on Windows 11.  Remark: These Python programs require OpenCV and ffpyplayer. Since I encountered some issues installing OpenCV on the latest Python 3.14, I created a Python 3.12 virtual environment to install OpenCV and ffpyplayer. Related:  Create Python virtual environment in Windows 11 play_jpg.py """ Python to auto play all jpg in "files" sub-folder. To install cv2: > pip install opencv-python """ import cv2 import os import time import platform sys_info_text = "Python " + platform.python_version() + "\n" +\ "Running on " + platform.platform() + "\n" +\ cv2.__name__ + " " + cv2.__version__ print("==================================================") print("""Python to auto play all jpg in "files" sub-folder.""") pri...

My display module: 1.9" 170*320 TFT ST7789 x 2pcs

Image
Arduino Exercise: ~  Raspberry Pi Pico 2 W display on two 1.9" 170*320 ST7789 SPI LCD, using Arduino_GFX_Library .