flâneur — a map of the web's best reading

GitHub - cbiffle/m4vga-rs: VGA-style video output for STM32F4 processors, in Rust

github.com · 650 words · saved by 1 readers

This crate provides 800x600 60fps graphics on the STM32F407 microcontroller. The observant reader will note that the STM32F407 has no video hardware, or enough RAM to hold an 800x600 color image. So how does m4vga get high-res color video out of it? Magic. This is a rewrite of my C++ library m4vgalib, plus ports of my collection of m4vgalib demos. It is still a work in progress. (If you're curious, see my notes on the port.) (As of quite recently, several of the demos also compile for another platform without video hardware: WebAssembly.) Mostly because it's really hard. I've got four CPU cycles per pixel to work with, and any variation in timing will corrupt the display. The demo main files live in m4demos/src/bin, though the core implementations of several of the demos have migrated into the fx directory. conway: full-screen Conway's Game of Life at 60fps -- that's 28.8 million cell updates per second, for a budget of 5 cycles per update (not counting video generation). hires_text: 8

m4vga-rs This crate provides 800x600 60fps graphics on the STM32F407 microcontroller. The observant reader will note that the STM32F407 has no video hardware, or enough RAM to hold an 800x600 color image. So how does m4vga get high-res color video out of it? Magic. This is a rewrite of my C++ library m4vgalib , plus ports of my collection of m4vgalib demos . It is still a work in progress. (If you're curious, see my notes on the port .) (As of quite recently, several of the demos also compile for another platform without video hardware: WebAssembly.) Why this is interesting Mostly because it's

Explore this link on the map →

related reading