返回资讯中心
外部精选
软件工程
#开发者实时流

The RP2350 can do full motion video playback

This project is an envisioning of an alternate universe mid-80s home computer. It runs on RP2350 boards, with the Adafruit Fruit Jam as the primary target. The name is an homage to the VIC-II chip at the core of the Com…

Hacker News 最新raphlinus2026/10/31 · 17 天前8 分钟阅读

以下正文同步自 Hacker News 最新,版权归原站所有,已转换为易读排版。

This project is an envisioning of an alternate universe mid-80s home computer. It runs on RP2350 boards, with the Adafruit Fruit Jam as the primary target. The name is an homage to the VIC-II chip at the core of the Commodore 64 computer.

It is primarily written in symbolasm, a modern syntax for ARM assembly language.

In the early 80s, there were two camps regarding video output: a dumb framebuffer and more sophisticated on-the-fly video processing. Rendering tiles and sprites on the fly was ideally suited to 8 bit video games, enabling smoothly interactive graphics without much effort by the CPU.

Text modes were in some ways a special case of on the fly rendering. Invariably limited to fixed-width cells, video RAM contained character indices and additional attributes, and during a scanline the video hardware would look up the character index in a font RAM before scanning out. This mechanism actually has a lot in common with video game tile rendering, and C64 games often abused the text rendering capabilities to draw game content.

The heart of vic-2350 is a beam racing renderer, inspired by 80s hardware. The RP2350 has a rare confluence of factors that make beam racing appealing: framebuffers take too much RAM (so the resolution and color depth is limited), plus the chip has enough horsepower to render quite interesting graphics on the fly.

This project is a continuation of pico-dvi-rs, with a much greater emphasis on bare metal programming.

Then ./build.sh builds each demo into build/<demo>.elf. Set SYMBOLASM to use a symbolasm checkout somewhere else.

The RP2350 register definitions come from the rp235x-pac crate, which the build fetches along with the other Rust dependencies. Set SVD to use a different RP2350.svd.

Put the board in BOOTSEL mode, then run, for example:

picotool -x build/colorbars.elf

You can also use tools/run.sh, which, in addition to picotool, prints logs sent over USB serial. It can also start from an existing running demo, using the "1200 bps touch" method.

This just demonstrates a simple bringup of video out, and can also be useful for calibrating video capture.

Displays raw USB reports; useful for debugging mice, keyboards, and other devices.

Displays an image encoded using the nibnib image compression format. The image is stored in flash. It should be 640x480.

The rects demo displays 64 colored rectangles bouncing around, showing off the animation capabilities of the race-the-beam renderer. There is also a drag variant that lets you drag the rectangles around with a USB mouse. That demo also shows off sprite rendering capabilities, for the mouse cursor.

Plays a video clip from the SD card. The screenshot above is from Big Buck Bunny by the Blender Foundation (licensed as CC-BY 3.0). Copy the encoded video to VIDEO.NIB in the root of the SD card.

The re-encoded video binary can be found in the v0.1.0 release assets.

A demo of text rendering. It's a proportionally spaced font (helvR10.bdf from adobe-100dpi from the xorg distribution). One line scrolls, showing basic animation.

A demo of 16x16 tile rendering, 16 colors each, with multiple palettes. The tileset is by Dandelion Pixel Art; see the maps/ subdirectory for more info.

正文由 探How 从来源站点 RSS 同步,内容未经改写;遇到排版缺失或需要图片、视频时请以原文为准。

打开原文
去社区讨论 →