Playing Bad Apple on a BBC micro:bit
This whole project is written in rust, so you will need the rust toolchain (this was developed on rustc 1.85.0-nightly (dff3e7ccd 2024-11-26))
- Install the ffmpeg development libraries for your platform (follow these instructions)
 - Get a copy of the bad apple video, and place it at 
./badapple.mp4(if you don't have an mp4 file, just edit./micro_apple_build/src/main.rsto look a different path) - In 
micro_apple_build, runcargo run - You should then have 
./bad_apple_rle.binappear 
- Plug in your micro:bit
 - Install the 
thumbv7em-none-eabihftarget (rustup target add thumbv7em-none-eabihf) - Install 
probe-rsandflip-link(cargo install flip-link) - If you're building within Windows subsystemm for linux, follow the setup section of this to get usbipd setup.
 - If you're on linux, setup 
udevrules to allow non-superusers to program the microbit using this (n.b. there is a more comprehensive set of rules in theprobe-rsdocs, which I personally use) - In 
micro_apple, runcargo embed --release --target thumbv7em-none-eabihf. This will flash to the micro:bit. (n.b. there might be a warning that mentions that the core might be halted, I'm not really sure what causes it but you can ignore it). - Micro:bit will now play bad apple