本目录只收录已经在 BBK 9588 真机或 8013 完整 NAND 模拟器中形成运行闭环的
开发者示例。逆向候选和危险探针保留在 reverse/examples/,不会混入这里。
所有源码只包含 sdk/include/ 中的公开模块头;复杂示例显式列出窗口、绘图、输入等
依赖,扫雷等完整程序也可以使用聚合 bda_sdk.h。示例不会访问
reverse/bda_research_sdk.h。
每个叶子目录中的 .bda 都由同目录 .c 构建,并已通过 header、entry、checksum 和
图标区静态校验:
basic/hello_world/ hello_world_msgbox.c + HelloWorld.bda
filesystem/fs_write/ fs_write_demo.c + FsWrite.bda
input/key_polling/ key_msgbox_demo.c + KeyInput.bda
input/touch_crosshair/ touch_crosshair_demo.c + TouchCrosshair.bda
graphics/primitives/ graphics_primitives_demo.c + GraphicsPrimitives.bda
graphics/picture_render/ picture_render_demo.c + PictureRender.bda
games/minesweeper/ minesweeper_bda.c + MinesweeperV1.bda + icon
system/runtime_services/ runtime_services_demo.c + RuntimeServices.bda
system/high_resolution_timer/ high_resolution_timer_demo.c + HighResolutionTimer.bda
system/file_selector/ file_selector_demo.c + FileSelector.bda
system/confirm_dialog/ confirm_dialog_probe.c + ConfirmDialog.bda
system/three_button_dialog/ three_button_dialog_demo.c + ThreeButtonDialog.bda
system/help_page/ help_page_demo.c + HelpPage.bda
system/audio_pcm/ audio_pcm_demo.c + AudioPcm.bda
system/audio_capture/ audio_capture_demo.c + AudioCapture.bda
gui/control_gallery/ control_gallery_demo.c + ControlGallery.bda
gui/custom_control/ custom_control_demo.c + CustomControl.bda
gui/gif_player/ gif_player_demo.c + GifPlayer.bda
| 示例 | 能力 | 验证环境 | 说明 |
|---|---|---|---|
basic/hello_world/ |
Message Box | 模拟器 | API 文档 |
filesystem/fs_write/ |
文件写入、关闭、重开、读回 | 模拟器 | API 文档 |
input/key_polling/ |
六个实体键轮询 | 模拟器 | API 文档 |
input/touch_crosshair/ |
触摸坐标、无闪烁重绘、窗口退出 | 真机 | 生命周期教程 |
graphics/primitives/ |
点、线、圆、矩形和文字 | 模拟器 | API 文档 |
graphics/picture_render/ |
原生尺寸 raw RGB565 动态提交 | 模拟器 | API 文档 |
games/minesweeper/ |
双缓冲、VX、色键、dirty rect、tick | 模拟器 | 游戏绘图教程 |
system/runtime_services/ |
heap、seek、目录和枚举 | 模拟器 | API 文档 |
system/high_resolution_timer/ |
标称 1 ms timer 和完整 start/stop 生命周期 | 模拟器 + 真机 | API 文档 |
system/file_selector/ |
默认目录、后缀过滤和完整路径返回 | 模拟器 | API 文档 |
system/confirm_dialog/ |
系统是/否确认框及返回值 | 模拟器 | API 文档 |
system/three_button_dialog/ |
系统是/全部/否确认框及三个返回值 | 模拟器 | API 文档 |
system/help_page/ |
系统帮助页、同步返回和父 Frame 用法 | 模拟器 | API 文档 |
system/audio_pcm/ |
22050 Hz raw PCM、衰减控制和安全 stop | 模拟器 + 真机 | API 文档 |
system/audio_capture/ |
16000 Hz 实时 PCM 录音、波形和固件保护 | C200 真机 | API 文档 |
gui/control_gallery/ |
文本、按钮、列表、组合框、进度条和 toolbar | 模拟器 | 控件 API |
gui/custom_control/ |
自定义类注册、局部绘制、触摸和注销 | 模拟器 | 教程 |
gui/gif_player/ |
内存 GIF89a 加载、定时换帧和销毁 | 模拟器 | 控件 API |
先按入门教程安装 Python 包和 MIPS 工具链。
普通示例可直接打包:
bda-pack example\basic\hello_world\hello_world_msgbox.c `
--title HelloWorld --category 9 `
-o example\basic\hello_world\HelloWorld.bda扫雷带自定义图标,并放入“娱乐天地”分类:
bda-pack example\games\minesweeper\minesweeper_bda.c `
--title MinesV1 --category 4 `
--icon-png example\games\minesweeper\minesweeper_icon.png `
-o example\games\minesweeper\MinesweeperV1.bda控件示例:
bda-pack example\gui\control_gallery\control_gallery_demo.c `
--title Controls --category 9 `
-o example\gui\control_gallery\ControlGallery.bda
bda-pack example\gui\custom_control\custom_control_demo.c `
--title CustomCtrl --category 9 `
-o example\gui\custom_control\CustomControl.bda
bda-pack example\gui\gif_player\gif_player_demo.c `
--title GifPlayer --category 9 `
-o example\gui\gif_player\GifPlayer.bdaRaw PCM 示例:
bda-pack example\system\audio_pcm\audio_pcm_demo.c `
--title AudioPCM --category 9 `
-o example\system\audio_pcm\AudioPcm.bda实时录音示例:
bda-pack example\system\audio_capture\audio_capture_demo.c `
--title AudioCapture --category 9 `
-o example\system\audio_capture\AudioCapture.bda“已验证”只覆盖相应文档写明的固件和环境。模拟器通过不自动等于真机通过;示例也不
代表 reverse/bda_research_sdk.h 中的全部研究接口已经稳定。
