💾 Archived View for thebackupbox.net › ~epoch › blog › g15 captured on 2024-12-17 at 10:11:45. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2024-07-09)
-=-=-=-=-=-=-
The other day I started poking at the old code I had for drawing stuff on the screen my keyboard has built into it. I'd had a basic, control the pixel with some buttons and it'll leave a trail, but I'd left it with a bug preventing sleeps less than a second. Which made it really annoying to fiddle with. I figured that out and promptly threw most of it out anyway. Then I wanted to be able to use the screen as a tiny display that could do terminal stuff. Using some of the code from #g15stats and #hackvr_term I was able to get a program, which I named #g15term, that let me pipe stuff from stdin to the screen. Which works good enough for me. (While writing this, I found that menelkir wrote their own thing named g15term. I should probably pick a different name.)
While I was writing the g15term, I'd figured it'd be neat to add a display 'driver' to hackvr that'd output to the g15 screen. So that's what I did shortly before writing this blog post. The link to the source for that is below. I'm glad I sort of added some sort of abstraction layers to hackvr way back when.
//git.thebackupbox.net/hackvr/blob/refs/heads/master:/src/graphics_cs_g15.c
I took a video of hackvr running on the keyboard:
//epo.k.vu/uploads/dc93714dec179eb8d6c678a726fc1500
I dunno. That's all I guess.