This is a simple ROM for the DEF CON 32 Badge that makes the LEDs flash in random colors.
Big thanks to https://docs.google.com/document/d/1COY5n0HhBcBq7ILwsKtOjV-_0-arNPkk_qBH9PI9fms/edit and https://github.com/jaku/DEFCON-32-BadgeFirmware and @jaku's https://defrom.lol/
- 🔼 Up arrow: Increase the brightness of the LEDs
- 🔽 Down arrow: Decrease the brightness of the LEDs
◀️ Left arrow: Decrease the speed of the flashing▶️ Right arrow: Increase the speed of the flashing🅰️ A button: Toggle between the randomly generate R, G, and B values for the LEDs and randomly choosing from the predefined colors
- Add the
flashy.gbc
file to theROM
directory of the SD card - In the menu, go to "Select Another Game" to select the flashy ROM
- Enjoy the flashing lights!
- (If you like it, give this repo a star!)
If you can't write to your SD card and don't mind losing the current firmware, you can flash the badge with the rom-firmware.uf2
file.
- Power off the badge
- Plug in a USB cable into a computer
- Hold the top right button on the back of the badge while plugging the USB cable into the badge
- The badge should show up as a USB drive on your computer, drag the
rom-firmware.uf2
file onto the drive - Wait for the badge to reboot
- Enjoy the flashing lights!
- (If you like it, give this repo a star!)
- Download gbdk from https://github.com/gbdk-2020/gbdk-2020
- Run
(replace
./gbdk/bin/lcc -Wm-yC -o flashy.gbc ./src/main.c
./gbdk
with the path to your gbdk directory) - The
flashy.gbc
file is the ROM that you can add to the SD card, or you can make a firmware with https://defrom.lol/ - If you want to run the ROM on an emulator first for testing. I used https://taisel.github.io/GameBoy-Online/
The background files were generated with https://github.com/Calvin-LL/game-boy-tile-tools. The font of the text is Early GameBoy.