Posts

Raspberry Pi Pico 2 W display on dual LCD using Arduino_GFX_Library (Arduino Framework)

Image
Raspberry Pi Pico 2 W display on dual LCD using Arduino_GFX_Library.  - 2.4 inch 240×320 ST7789 SPI IPS - 2.0 inch 240x320 ST7789 SPI IPS Connection: Connection ==========      Raspberry Pi Pico 2 W | GP28| ------- LCD2_RST -----------------+      GND | |      GP27| ------- LCD2_DC ----------------+ |      GP26| ------- LCD2_CS --------------+ | |      Run | | | |      GP22| ------- LCD_RST ------+ | | |      GND | | | | |      GP21| ------- LCD_DC -------|-+ | | |      GP20| ------- LCD_BL -------|-|---+ | | |      GP19| MOSI - SPI_SDA ----+ | | | | | |      GP18| SCK - SPI_SCL --+ | | | | | | |      GND |      | | | | | | | |      GP17| SS - LCD_CS ---|-|-|-|-+ | | | ...

1.54" 320x320 ST7796 SPI IPS on Waveshare ESP32-H2-Zero/CircuitPython 10.0.3

Image
1.54" 320x320 ST7796 SPI IPS on Waveshare ESP32-H2-Zero /CircuitPython 10.0.3 Currently, no official ST7796 library for CircuitPython, so we have to implement my custom ST7796_INIT_SEQUENCE and busdisplay.BusDisplay(). cpy_H2Zero_st7796_320x320.py , simple color test. """ Waveshare ESP32-H2-Zero/CircuitPython display on 1.54 inch 320x320 ST7796 SPI IPS 320x320 ST7796 LCD ESP32-H2-Zero - BL -----+ +-----=======-----+ 3V3 ---+ | |5V GPIO24| GND ---|-|-------------|GND GPIO23| +-|-------------|3V3 GPIO25| +-------------|GPIO0 GPIO22| CS -------------------|GPIO1 GPIO14| SCK -------------------|GPIO2 GPIO13| DC -------------------|GPIO3 GPIO12| MOSI -------------------|GPIO4 GPIO11| |GPIO5 GPIO10| +-----------------+ CircuitPython Libraries ...

my dev.board: YD-ESP32-S3 N16R8

Image
YD-ESP32-S3 N16R8 by VCC-GND Studio  ~ GitHub link: vcc-gnd/YD-ESP32-S3 Exercise: ~  RGB NeoPixel on CircuitPython: adafruit_led_animation and rainbowio.colorwheel(), on YD-ESP32-S3 N16R8 (by VCC-GND Studio) running CircuitPython 10.1.0-beta.1 .

my dev.board: CH32V003/CH32V203 development set

Image
CH32V003/CH32V203 development set: - CH32V003F4P6 - CH32V203C8T6 - WCH-LinkE WCH web sire: wch-ic.com

RGB NeoPixel on CircuitPython: adafruit_led_animation and rainbowio.colorwheel()

Image
YD-ESP32-S3 N16R8 (by VCC-GND Studio) running CircuitPython 10.1.0-beta.1, to control onboard/external 8x RGB LED, using adafruit_led_animation . cpyS3_led_animation_blink.py """ YD-ESP32-S3 N16R8 (by VCC-GND Studio) running CircuitPython 10.1.0-beta.1 , to control onboard/external 8x RGB LED using adafruit_led_animation. https://coxxect.blogspot.com/2025/12/circuitpython-adafruitledanimation.html """ import board import neopixel from adafruit_led_animation.animation.blink import Blink from adafruit_led_animation.color import RED, GREEN, BLUE # Update to match the pin connected to your NeoPixels pixel_pin = board.NEOPIXEL ext_pixel_pin = board.GPIO4 # Update to match the number of NeoPixels you have connected pixel_num = 1 ext_pixel_num = 8 pixels = neopixel.NeoPixel(pixel_pin, pixel_num, brightness=0.1, auto_write=False) ext_pixels = neopixel.NeoPixel(ext_pixel_pin, ext_pixel_num, brightness=0.1, auto_write=True) blink = Blink(pixels, ...

my display module: 1.54" 320x320 ST7796 SPI IPS (TK015F4000)

Image
1.54" 320x320 ST7796 SPI IPS (TK015F4000) CircuitPython exercise: ~  1.54" 320x320 ST7796 SPI IPS on Waveshare ESP32-H2-Zero/CircuitPython 10.0.3

Python/DOS scripts to copy, sort and rename files.

Image
This script clears the  folder, sorts all  files from the  folder, and copies them into  with sequential names like , , etc. Python Script • The Python script scans the sub‑folder named "images". • It collects all files ending with ".jpg", sorts them alphabetically by filename, and then processes them one by one. • Before copying, it deletes the existing "new_images" folder (if present) to ensure no old files remain. • It creates a fresh "new_images" folder. • Each ".jpg" file is copied into this new folder and renamed sequentially as "image_001.jpg", "image_002.jpg", …. • The numbering uses three digits with leading zeros for consistency. rename.py import os import shutil src_folder = "images" dst_folder = "new_images" cwd = os.getcwd() print("Current Working Directory:", cwd) # If the target folder exists, clear it first. if...