This turns your Badger into a portable conference schedule viewer.
Configure the talks for a day, and skip forward and back with the face buttons.
Marvel at the progress bar at the bottom of the Badger.
This program requires some assets to be built (that is: images cropped and transformed). There is a Windows .bat
file supplied to do this. If you're using another OS, you'll need to roll your own. Please fork/pull-request and contribute it back :)
Clarifications to this readme also welcome by fork/pull-request.
Use at your own risk, etc.
- Install Thonny, which is used to compile and deliver MicroPython to the Badger.
- Install ImageMagick for resizing/cropping images. The
magick
command should be available to the command line. - Ensure
python3
can be called from the command line. Install it if it's not available. - Copy this Image Converter script into the
external-code
folder. - The conversion script has a dependency. Use
pip3 install pillow
to install it.
An example is provided so you should be able to be running straight away. A skeleton is supplied so you can create your own schedule data to load.
- Copy the contents of the
config-example
folder intoconfig
- Copy the contents of the
config-example
folder intoconfig
- Add your own images into the
config/images
folder. - Edit
config/config.py
to describe the day's schedule.
The Badger requires image assets to be compiled in a particular format. The build chain will have a crack at resizing, cropping, and converting images, leaving the originals untouched.
- Run
build-win.bat
. This should create a_deploy
folder containing acn_schedule
folder which has animages
subfolder and yourconfig.py
file.
- Open Thonny.
- Attach your Badger via USB.
- Ensure Thonny is set up to deploy to Badger. Particularly, ensure the bottom right of the window says
MicroPython (Raspberry Pi Pico)
- change this by click-and-select if it does not. - Ensure the file browser is open in Thonny (in the menu: View -> Files should be ticked)
- In the bottom browser pane (this is the Badger) delete
cn_schedule
folder if it exists. - Find the
_deploy
folder on your computer (the top file browser pane). - Right click
_deploy/cn_schedule
and clickupload to /
- Open
badge.py
in Thonny. - Hit the
Run Current Script
button. This will loadbadge.py
onto Badger and run it.
Please send me a message / picture / video of your Badger :)
You're welcome to lift any code you like, fork, or adapt. Please respect CC BY-SA for any significant chunks of code (Assertion: James Rutherford / creativenucleus 2022).