1个不稳定版本
0.1.0 | 2024年2月21日 |
---|
#791 in 嵌入式开发
460KB
114 行
复古电脑的嵌入式显示器驱动程序
Embedded-graphics
驱动程序,用于 Commodore、Atari、Nintendo 等复古电脑。

状态
- Commodore 64
- 简单的 PETSCII 颜色显示驱动程序(40 x 25 个字符“像素”)
- VIC-II 颜色表,具有从/to
const
到嵌入式图形
颜色的转换 - 位图显示驱动程序
入门指南
项目需要 rust-mos,并提供了一个可用的Docker镜像:mrkits/rust-mos。另请参阅 llvm-mos wiki。
Docker和Visual Studio Code
最简单的方法是使用提供的 .devcontainer.json
配置来设置Visual Studio Code。
- 安装并启动 Docker
- 使用 Remote - Containers 扩展配置Visual Studio Code
当被要求时,在 Dev container 中重新打开。在启动VSC之前,您可能想编辑cd retro-display/ code --install-extension ms-vscode-remote.remote-containers code .
.devcontainer.json
以指向mrkits/rust-mos
的最新标记镜像。特别是,如果您使用的是ARM架构,例如Apple Silicon,请确保使用为linux/arm64
编译的镜像,因为在Docker中模拟x86非常慢。 - 在VSC终端中,使用
cargo build --release --target mos-c64-none --example demo
- 在
target/
中查找二进制文件并在模拟器中运行或在真实硬件上传输。