Badgeware: Digital Dice for the Pimoroni Badger and Tufty 2350

Today's app is a Dice roller for the Pimoroni BadgeWare devices, supporting both the E-Ink Badger and the TFT Tufty. The MicroPython-based app lets you roll from 2 to 6 dice with 4 to 20 sides.  The allocated dice can be any combination of sides.  The app defaults to rolling all the dice every time but lets you freeze any number of the dice and re-roll. The codebase can be installed to add to the main menu page or replace the menu page to be the only app on the device.

The Pimoroni BadgeWare series are programmable, hackable devices in a digital conference badge form factor.  They have lanyard loops, built-in batteries, wi-fi, Bluetooth, and QT/ST (Stemma) IOT sensor connectors. This single app supports both displays and their different power management profiles. It does not support the RGB-LED display Blinky.

Installation

The code is installed over USB using the standard Disk-Mount drive copy method used for Badgeware.  It is similar to the CircuitPython install pattern.  Claude Code users can clone this project and just tell Claude Code to install it on the devices.  You can manually install the code using the Pimoroni docs.

Dice Demo

Click to expand A six minute demo video

UI Walkthrough

The E-Ink Badger is on the left. The TFT display Tufty is on the right.  The app has two screens, one for setup and one for rolling the dice.  All 5 buttons have uses on each screen.

BadgeWare Main Menu

The following picture shows the Dice Roller as a menu entry.  The user presses A an C on the bottom to move between apps and presses B to launch an application.  The image below shows the dice launch icon on both devices.


The Setup Page

The following image shows the setup page on both devices.  The apps probably launched into the default dice-rolling page where the user pressed the setup button. You'll see that below.

The Badger on the left is configured for 4 dice: 1-D4, 1-D6, 1-D8, and 1-D13. 
  • The more (up) and less (down) buttons affect the number of dice when the box in the upper right corner is highlighted and no single die has a highlight box around it.
    • The dice count in the upper right corner is highlighted in this image
  • The more and less keys set the number of faces of a specific die if a single die is highlighted.
  • The A and C keys are used for navigation.  
  • The B key exits setup and returns to the rolling screen.

Rolling Screen

The Badger, on the left, is configured to roll 4 dice. The Tufty screen, on the right, is configured to roll 6 dice. 
  • The A and C buttons move the highlight box.  
  • The Up button locks a die to freeze its value for the next roll. 
    • A long-press on the Up button unlocks all locked dice.
  • The Down button. on the bottom right rolls all the unlocked dice.  
  • The B button leaves this screen and moves to the setup screen.



Source Code


Revision History

  • Created 2026 11


Popular posts from this blog

GitHub "Clone to Desktop" with Windows GitHub.

Installing the RNDIS driver on Windows 11 to use USB Raspberry Pi as network attached

Building a general entity matcher requires more than one dataset - 3