Posts

Build a Python Slideshow App with PyQt6 and Package It as a Windows .exe

Image
In this post, we build a small desktop slideshow application with Python and PyQt6. The app lets you pick any folder through a built-in file explorer, then plays its contents as a slideshow — each image is displayed for 5 seconds, each video plays once, and a mouse click or touch tap skips to the next item. The walkthrough covers the full real-world workflow on Windows: create an isolated virtual environment, install PyQt6, run the app from source, and finally package everything into a single standalone .exe with PyInstaller — so the finished slideshow can run on any Windows PC, even one without Python installed. To create a Python virtual environment , enter in Command Prompt: python -m venv .venv Creates an isolated Python environment in a .venv folder, keeping this project's dependencies separate from the system-wide Python. (.venv is just a naming convention — any folder name works.) To activate it, enter: .venv\Scripts\activate.bat or .venv\Scri...

How to Drive an SSD1315/SSD1306 I2C OLED Display on ESP32-C5_MINI with MicroPython

Image
In this post, we will look at how to interface and display data on a 0.96-inch 128x64 SSD1315 I2C OLED display using ESP32-C5_MINI and MicroPython. For these exercises, we will use the official micropython-ssd1306 driver. Because the SSD1315 shares the exact same command structure for basic operations as the classic SSD1306, this library works flawlessly out of the box. Getting the Library There are two easy ways to install the driver on your board: Via Thonny IDE: Go to Tools ➔ Manage packages..., search for micropython-ssd1306, and click Install. Manual Installation: Download ssd1306.py directly from the official MicroPython-lib repository and save it onto your ESP32-C5 file system. Connection SDA - IO3 SCL - IO4 VCC - 3V3 GND - GND Exercise Code mpy_C5_ssd1306.py , basic setup and test. """ Exercise on ESP32-C5_MINI/MicroPython v1.29.0-preview Display on 0.96 inch 128x64 SSD1315 I2C OLED (SSD1...

Flashing MicroPython Firmware on the ESP32-C5_MINI using esptool

Image
This post walks you through the step-by-step process of flashing MicroPython firmware onto the ESP32-C5_MINI . 1. Download the MicroPython Firmware First, grab the correct binary for your chip: Visit the official MicroPython Download Page . Search or scroll down to the ESP32 section and locate the ESP32-C5 targets. Select ESP32-C5 by Espressif and download your preferred .bin file version. 2. Flash the Firmware (The 0x2000 Offset) To flash the firmware, connect your board to your computer and run the following esptool command. ⚠️ Crucial Note: Unlike older ESP32 chips (like the S3) which often start flashing at 0x0 , the ESP32-C5 requires you to write the flash starting exactly at address 0x2000 . Run this command in your terminal (replace PORTNAME and the .bin filename with your actual values): esptool --port PORTNAME ...

Hello ESP32-C5_MIINI

Image
Hello World on ESP32-C5_MIINI , list info and blink onboard LED (on IO23). ESP32-C5_MINI_hello.ino #define LED 23 void setup() { delay(2000); Serial.begin(115200); delay(1000); // initialize digital pin of the ESP32-C5_MINI onboard LED as an output. pinMode(LED, OUTPUT); digitalWrite(LED, LOW); // LED ON Serial.println("\n===================================="); Serial.println("Arduino_Hello World example"); Serial.println("ESP32-C5_MINI"); Serial.println("===================================="); Serial.printf("Chip model: %s\n", ESP.getChipModel()); Serial.printf("Chip revision: %d\n", ESP.getChipRevision());// Get ESP-IDF Version Serial.print("ESP-IDF Version: "); Serial.println(esp_get_idf_version()); #ifdef ESP_ARDUINO_VERSION_STR Serial.print("Arduino-ESP32 Core Version (String): "); Serial.println(ESP_ARDUINO_VERSION_STR); #else Serial.println("E...

my dev. board ESP32-C5_MINI

Image
ESP32-C5_MINI esptool read flash-id of ESP32-C5_MINI esptool --port COM4 flash-id Exercises: ~ Hello ESP32-C5_MIINI MicroPython: ~  Flashing MicroPython Firmware on the ESP32-C5_MINI using esptool ~  Drive an SSD1315 I2C OLED Display on ESP32-C5_MINI with MicroPython

my dev.board WeActStudio.STM32G474CoreBoard

Image
my dev.board WeActStudio.STM32G474CoreBoard Github: https://github.com/WeActStudio/WeActStudio.STM32G474CoreBoard.git Gitee: https://gitee.com/WeAct-TC/WeActStudio.STM32G474CoreBoard.git

Waveshare ESP32-S3-Touch-LCD-4B Hello World

Image
Basic Test run on  Waveshare ESP32-S3-Touch-LCD-4B , with built-in 4inch 480 × 480 resolution ST7701 RGB interface LCD. S3_ST7701_basictest.ino /* Basic test run on Waveshare ESP32-S3-Touch-LCD-4B https://coxxect.blogspot.com/2026/06/waveshare-esp32-s3-touch-lcd-4b-hello.html Remark about "USB CDC On Boot" option for Serial.print() If host PC connect to USB TO UART port (lower one), select USB CDC On Boot: "Disabled". If connect to ESP32-S3 USB Interface port (middle one), select USB CDC On Boot: "Enabled" Otherwise, you cannot see the output by Serial.print(). */ #include <Arduino.h> #include "Arduino_GFX_Library.h" #define BL 4 Arduino_XCA9554SWSPI *expander = new Arduino_XCA9554SWSPI( 7, 0, 2, 1, &Wire, 0x20); Arduino_ESP32RGBPanel *rgbpanel = new Arduino_ESP32RGBPanel( 17 /* DE */, 3 /* VSYNC */, 46 /* HSYNC */, 9 /* PCLK */, 10 /* B0 */, 11 /* B1 */, 12 /* B2 */, 13 /* B3 */, 14 /* B4 */, 21 ...