The home screen menu mixes app icons with photo tiles. Select a photo tile and it opens full screen. This hack adds your own photo as a new tile.
What you need
- Your badge and a USB-C data cable
- A photo on your computer
- An image editor: Paint on Windows or Preview on a Mac
- VS Code or another text editor
How photo tiles work
Each tile uses two PNG files with the same name, plus one line of code:
| File on the BADGER drive | Size | Purpose |
|---|---|---|
apps/menu/photos/my-photo.png | 320 × 240 px | Shown full screen when you select the tile |
apps/menu/photos/tiles/my-photo.png | 166 × 166 px (square tile) or 166 × 87 px (wide tile) | Shown in the menu grid |
apps/menu/gallery.py | one line per photo | Tells the menu the tile’s name, shape, and position |
The file name becomes the tile label, with dashes turned into spaces. my-photo.png shows as my photo. Use lowercase letters, numbers, and dashes only.
1. Make the two images
- Full-screen image (320 × 240)
- Crop your photo to a landscape 4:3 shape around the part you want to show.
- Windows (Paint): choose Select, drag a box, then choose Crop.
- Mac (Preview): drag a box, then choose Tools → Crop.
- Resize it to exactly 320 × 240 pixels.
- Windows (Paint): Resize → Pixels, clear Maintain aspect ratio, and enter 320 and 240.
- Mac (Preview): Tools → Adjust Size, set the units to pixels, clear Scale proportionally, and enter 320 and 240.
- Save it as a PNG named
my-photo.png. In Preview, use File → Export and choose PNG.
- Crop your photo to a landscape 4:3 shape around the part you want to show.
- Tile image (166 × 166)
- Open your original photo again and crop a square around the subject.
- Resize it to 166 × 166 pixels and save it as a PNG. Name this one
my-photo.pngas well, so keep it in a different folder from the first file.
The tile image doesn’t have to match the full-screen image. Use a tight crop so the subject is easy to see in the small tile.
2. Copy the images to the badge
- Connect the badge to your computer with a USB-C data cable.
- Enter USB Disk Mode. Double-tap the badge’s RESET button, or open Mass Storage from the menu. A drive named BADGER appears in File Explorer (Windows) or Finder (Mac).
- Copy the 320 × 240
my-photo.pngintoBADGER/apps/menu/photos/. - Copy the 166 × 166
my-photo.pngintoBADGER/apps/menu/photos/tiles/.
3. Add the tile to the menu
-
Copy
BADGER/apps/menu/gallery.pyto your computer as a backup. -
Open the BADGER drive in VS Code (File → Open Folder…) and open
apps/menu/gallery.py. -
Add a line for your photo at the top of the
GALLERYlist:GALLERY = ( ("my-photo", 2, 2, 2, None), ("mona-quilt", 2, 1, 7, (185, 100, 0.55)), ... )The values are:
Value Meaning "my-photo"File name without .png2, 2Width and height in grid cells. Use 2, 2for a square tile (166 × 166 image) or2, 1for a wide tile (166 × 87 image)2Position in the menu. 0is the first tile, so2puts your photo near the topNoneUse the centre of the photo when it opens. The built-in photos use (x, y, zoom)here to pick a focus pointKeep the comma at the end of the line.
-
Save the file and eject BADGER. The badge restarts. If it doesn’t, press RESET once.
Verify
- Move to your tile with the direction pad. The label at the bottom shows my photo.
- Press Select to open the photo full screen. Press any button to close it.
No-code alternative
To skip editing gallery.py, replace one of the built-in photos instead. For example, overwrite photos/mona-centered.png (320 × 240) and photos/tiles/mona-centered.png (166 × 166) with your own images. Keep the original file names. The label still reads mona centered. Keep copies of the originals if you want to put them back.
Troubleshooting
- The tile doesn’t appear: check that the tile image exists in
photos/tiles/and that its name matches thegallery.pyentry exactly, including lowercase letters. - The menu doesn’t start after editing
gallery.py: there’s probably a typo, such as a missing comma or quote. Double-tap RESET to get back to USB Disk Mode, then fix the line or restore your backup. - The photo looks stretched: crop to 4:3 (full screen) or a square (tile) before resizing.