A tech demo that plays Bad Apple! on the Logitech G13. Cause reasons.
Go to file
2024-04-13 08:45:09 -05:00
images Initial and probably final commit 2024-04-13 07:44:00 -05:00
lpbm Actually tidied some things up a bit, and made some simple scripts to allow YOU to make the lpbms yourself. 2024-04-13 08:32:10 -05:00
badapple.py This should now work for really any video as I've un-hardcoded the frame count. 2024-04-13 08:38:20 -05:00
downscaleVideo.sh NOW it should work for any video file. Also documented a little. Not a lot, but a little. 2024-04-13 08:45:09 -05:00
generate.sh Actually tidied some things up a bit, and made some simple scripts to allow YOU to make the lpbms yourself. 2024-04-13 08:32:10 -05:00
LICENSE Initial commit 2024-04-13 04:26:35 -05:00
pbm2lpbm.py NOW it should work for any video file. Also documented a little. Not a lot, but a little. 2024-04-13 08:45:09 -05:00
png2pbm.py NOW it should work for any video file. Also documented a little. Not a lot, but a little. 2024-04-13 08:45:09 -05:00
README.md This should now work for really any video as I've un-hardcoded the frame count. 2024-04-13 08:38:20 -05:00
requirements.txt Actually tidied some things up a bit, and made some simple scripts to allow YOU to make the lpbms yourself. 2024-04-13 08:32:10 -05:00
videoToPng.sh NOW it should work for any video file. Also documented a little. Not a lot, but a little. 2024-04-13 08:45:09 -05:00

logitech-g13-badapple

A tech demo that plays Bad Apple! on the Logitech G13. Cause reasons.

It uses the longer 5 minute version of the song instead of the edited version the actual video uses. That's my bad. I won't fix it.

This uses the g13 userspace driver, and expects the named pipe to be at /run/g13d/g13-0 as that's where it was put on my system (Arch).

This demo is VERY poorly written, but I don't care that much.

Usage

The Short Version

python3 badapple.py

The Long Version

The repository contains all of the lpbm files prebuilt, but if you'd like to do it yourself you can download the video that was used. The file must be named original.mp4.

Once that file is there, run the generate.sh script. It will take care of everything.

It's worth noting that this could probably be used for any video file if you so desired. Not sure why youd want to do that, though, unless it's for an animation of some sort which could be kinda fun.