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.rs
to look a different path) - In
micro_apple_build
, runcargo run
- You should then have
./bad_apple_rle.bin
appear
- Plug in your micro:bit
- Install the
thumbv7em-none-eabihf
target (rustup target add thumbv7em-none-eabihf
) - Install
probe-rs
andflip-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
udev
rules to allow non-superusers to program the microbit using this (n.b. there is a more comprehensive set of rules in theprobe-rs
docs, 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