Keyboard Builders' Digest
10% off ergo caps at 3dkeycaps! Code: KBDNEWS
Keyboard Builders' Digest / Tips & Tricks

Cyberpunk OLED glitch

A cool OLED glitch animation by Aleks with open-source firmware and bitmap frames.

KBD.news
Published November 21, 2021
Creators! Feel free to tip me off about your keyboard related projects to bring them to 150,000 readers!

Basically I just did a bunch of frames on gimp, exported them as bitmap images, then used https://javl.github.io/image2cpp/ to convert them to be usable to drive the oled. Then it's just a matter of randomly showing different images to make the glitch effect, with adding more during the transition to make it look nicer – Aleks.

Aleks was kind enough to publish both the firmware and the bitmap frames. According to him, the animation could be simplified by doing the glitch on the fly, but "I got lazy and went with separate frames".

The firmware is on the heavy side, so lot of features are disabled, and this is intended to be used only on the non master side of the keyboard.

Firmware files: https://gist.github.com/aleksbrgt/48a8eb932dc1b6aa8f4b36ecd7c380d0

Frame bitmaps: https://imgur.com/a/WKfJFRg

How long did it take to make the animation?

There is not a lot of frames so it was not too time consuming. I think it took me something like 1 hour to make a set of glitched images that looked good, taking the time to try them out on the oled and tuning them a lot.

The most inconvenient was to make the two base images. Just cropping and resizing existing ones did not produce good results, so they had to be redrawn from scratch.

And finally, the code part was the longest, not complex, but a lot of tuning to reach a point where I was happy with the amount of glitch, the transitions, etc. So in total I think it took me 2 to 3 hours.
Do you like this post? Share, donate, subscribe, tip me off!

Published on Sun 21st Nov 2021. Featured in KBD #53 (source).


Related

Origami transport bag

FalbaTech's Origami bag is an environmentally friendly way to transport your split keyboards.

Concrete keyboard

Another concrete keyboard in the making, this time by Chrislybaer. First try failed.

3D-printed PCB

A printed circuit board. Literally. PCB 3D-printed by duzitbetter (reddit, hackaday).

DIY shine-through caps

Prototyping NP profile shine-through caps by neXus5169.

Switch films with Cricut

Switch films made from 0.2mm stencil vinyl by hhsandi using Cricut.

×
top