From dabfb90b6a82f383194e5c158561f86bda1470a6 Mon Sep 17 00:00:00 2001 From: PeakRacing <1473454180@qq.com> Date: Sun, 18 Jan 2026 21:09:47 +0800 Subject: [PATCH 1/3] add:add nes simulator --- multimedia/Kconfig | 1 + multimedia/nes_simulator/Kconfig | 90 +++++++++++++++++++++++++++ multimedia/nes_simulator/package.json | 35 +++++++++++ 3 files changed, 126 insertions(+) create mode 100644 multimedia/nes_simulator/Kconfig create mode 100644 multimedia/nes_simulator/package.json diff --git a/multimedia/Kconfig b/multimedia/Kconfig index 0e40ee96eb..39bc9b8817 100644 --- a/multimedia/Kconfig +++ b/multimedia/Kconfig @@ -2,6 +2,7 @@ menu "multimedia packages" source "$PKGS_DIR/packages/multimedia/LVGL/Kconfig" source "$PKGS_DIR/packages/multimedia/u8g2/Kconfig" +source "$PKGS_DIR/packages/multimedia/nes_simulator/Kconfig" source "$PKGS_DIR/packages/multimedia/openmv/Kconfig" source "$PKGS_DIR/packages/multimedia/mupdf/Kconfig" source "$PKGS_DIR/packages/multimedia/STemWin/Kconfig" diff --git a/multimedia/nes_simulator/Kconfig b/multimedia/nes_simulator/Kconfig new file mode 100644 index 0000000000..cc9c65efde --- /dev/null +++ b/multimedia/nes_simulator/Kconfig @@ -0,0 +1,90 @@ + +# Kconfig file for package nes +menuconfig PKG_USING_NES_SIMULATOR + bool "The nes simulator implemented in C." + default n + +if PKG_USING_NES_SIMULATOR + + config PKG_NES_SIMULATOR_PATH + string + default "/packages/multimedia/nes_simulator" + + choice + prompt "PKG_NES_LOG_LEVEL" + default PKG_NES_LOG_LEVEL_INFO + help + Select NES LOG LEVEL + + config PKG_NES_LOG_LEVEL_NONE + bool "LOG_LEVEL_NONE" + + config PKG_NES_LOG_LEVEL_ERROR + bool "LOG_LEVEL_ERROR" + + config PKG_NES_LOG_LEVEL_WARN + bool "LOG_LEVEL_WARN" + + config PKG_NES_LOG_LEVEL_INFO + bool "LOG_LEVEL_INFO" + + config PKG_NES_LOG_LEVEL_DEBUG + bool "LOG_LEVEL_DEBUG" + endchoice + + choice + prompt "PKG_NES_COLOR_DEPTH" + default PKG_NES_COLOR_DEPTH_32 + help + Select NES COLOR DEPTH, 16:rgb565, 32:rgb8888 + + config PKG_NES_COLOR_DEPTH_16 + bool "COLOR_DEPTH_16" + + config PKG_NES_COLOR_DEPTH_32 + bool "COLOR_DEPTH_32" + endchoice + + if PKG_NES_COLOR_DEPTH_16 + config PKG_NES_COLOR_SWAP + bool "Enable Color Swap" + default y + endif + + config PKG_NES_ENABLE_SOUND + bool "Enable Sound" + default n + help + config nes to enable sound. + + config PKG_NES_USE_FS + bool "Enable File System" + default y + help + config nes to use file system to load rom files. + + config PKG_NES_FRAME_SKIP + int "Frame Skip" + range 0 5 + default 0 + + choice + prompt "Version" + default PKG_USING_NES_SIMULATOR_LATEST_VERSION + help + Select the package version + + config PKG_USING_NES_SIMULATOR_V003 + bool "v0.0.4" + + config PKG_USING_NES_SIMULATOR_LATEST_VERSION + bool "latest" + endchoice + + config PKG_NES_SIMULATOR_VER + string + default "v0.0.4" if PKG_USING_NES_SIMULATOR_V003 + default "latest" if PKG_USING_NES_SIMULATOR_LATEST_VERSION + +endif + diff --git a/multimedia/nes_simulator/package.json b/multimedia/nes_simulator/package.json new file mode 100644 index 0000000000..d42d1d8b6a --- /dev/null +++ b/multimedia/nes_simulator/package.json @@ -0,0 +1,35 @@ +{ + "name": "nes_simulator", + "description": "The nes simulator implemented in C.", + "description_zh": "C语言实现的nes模拟器。", + "enable": "PKG_USING_NES_SIMULATOR", + "keywords": [ + "nes", + "simulator", + "game" + ], + "category": "multimedia", + "author": { + "name": "PeakRacing", + "email": "1473454180@qq.com", + "github": "PeakRacing" + }, + "license": "Apache-2.0", + "repository": "https://github.com/PeakRacing/nes", + "icon": "unknown", + "homepage": "https://github.com/PeakRacing/nes#readme", + "doc": "unknown", + "site": [ + { + "version": "v0.0.4", + "URL": "https://github.com/PeakRacing/nes/archive/refs/tags/v0.0.4.zip", + "filename": "nes-0.0.4.zip" + }, + { + "version": "latest", + "URL": "https://github.com/PeakRacing/nes.git", + "filename": "", + "VER_SHA": "master" + } + ] +} From 6a195656526c2df05b55c88ae1d7594780e8f5d3 Mon Sep 17 00:00:00 2001 From: PeakRacing <1473454180@qq.com> Date: Mon, 19 Jan 2026 18:09:20 +0800 Subject: [PATCH 2/3] update: auto select posix fs --- multimedia/nes_simulator/Kconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/multimedia/nes_simulator/Kconfig b/multimedia/nes_simulator/Kconfig index cc9c65efde..ee2d01b2c0 100644 --- a/multimedia/nes_simulator/Kconfig +++ b/multimedia/nes_simulator/Kconfig @@ -58,6 +58,9 @@ if PKG_USING_NES_SIMULATOR config nes to enable sound. config PKG_NES_USE_FS + select RT_USING_DFS if RT_VER_NUM < 0x40100 + select RT_USING_LIBC if RT_VER_NUM < 0x40100 + select RT_USING_POSIX_FS if RT_VER_NUM >= 0x40100 bool "Enable File System" default y help From c75583f0f7281522b219893b3cc10a5e9f85a00d Mon Sep 17 00:00:00 2001 From: PeakRacing <1473454180@qq.com> Date: Tue, 20 Jan 2026 14:54:38 +0800 Subject: [PATCH 3/3] =?UTF-8?q?fix:=E6=9B=BF=E6=8D=A2=E5=A4=B1=E6=95=88?= =?UTF-8?q?=E4=BB=93=E5=BA=93=E9=93=BE=E6=8E=A5=E4=B8=BA=E5=A4=87=E4=BB=BD?= =?UTF-8?q?=E4=BB=93=E5=BA=93=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- peripherals/fingerprint/package.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/peripherals/fingerprint/package.json b/peripherals/fingerprint/package.json index e5362937d7..3bc28bb9b6 100644 --- a/peripherals/fingerprint/package.json +++ b/peripherals/fingerprint/package.json @@ -13,19 +13,19 @@ "github": "pk-ing" }, "license": "GPL-3.0", - "repository": "https://github.com/pk-ing/fingerprint", + "repository": "https://github.com/RT-Thread-packages/fingerprint", "icon": "unknown", - "homepage": "https://github.com/pk-ing/fingerprint", - "doc": "https://github.com/pk-ing/fingerprint/tree/master/doc", + "homepage": "https://github.com/RT-Thread-packages/fingerprint", + "doc": "https://github.com/RT-Thread-packages/fingerprint/tree/master/doc", "site": [ { "version": "v1.0.0", - "URL": "https://github.com/pk-ing/fingerprint/archive/v1.0.0.zip", + "URL": "https://github.com/RT-Thread-packages/fingerprint/archive/v1.0.0.zip", "filename": "fingerprint-1.0.0.zip" }, { "version": "latest", - "URL": "https://github.com/pk-ing/fingerprint.git", + "URL": "https://github.com/RT-Thread-packages/fingerprint.git", "filename": "Null for git package", "VER_SHA": "master" }