Popular posts from this blog
480x320 TFT/ILI9488 SPI wih EP32C3 (arduino-esp32) using Arduino_GFX Library
Display on 3.5 inch 480x320 TFT with SPI ILI9488 (SKU:MSP3520) with XIAO EP32C3 (arduino-esp32) using Arduino_GFX Library. Install GFX Library for Arduino (Arduino_GFX) in Library Manager. Arduino_GFX is a Arduino graphics library supporting various displays with various data bus interfaces. This library start rewrite from Adafruit_GFX, LovyanGFX, TFT_eSPI, Ucglib, and more... Connection: Connection between XIAO ESP32C3 and 3.5" 480x320 TFT with SPI ILI9488 (SKU:MSP3520) XIAO ESP32C3 +-------------+ +---------|GPIO2 5V | | +-----|GPIO3 GND |-----------+ | +-|-----|GPIO4 3V3 |---------+ | | | | +---|GPIO5 GPIO10|-----...
Python/PyQt6 slideshow run on Windows 11
A simple Python/PyQt6 SlideShow to display jpg images in images folder. It's generated by Copilot, except the lines marked in blue. Tested on Windows 11 with PyQt6 installed in Python virtual environment . pyqt6_slideshow.py import sys import glob from PyQt6.QtWidgets import QApplication, QLabel, QMainWindow, QVBoxLayout, QWidget from PyQt6.QtGui import QPixmap from PyQt6.QtCore import QTimer from PyQt6.QtCore import Qt class SlideShowWindow(QMainWindow): def __init__(self): super().__init__() self.setWindowTitle("Image Slide Show") self.image_label = QLabel(self) self.image_label.setAlignment(Qt.AlignmentFlag.AlignCenter) layout = QVBoxLayout() layout.addWidget(self.image_label) container = QWidget() container.setLayout(layout) self.setCentralWidget(container) self.image_files = glob.glob(" images/ *.jpg") self.current_index = 0 self.show_image() ...

Comments
Post a Comment