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
magickcommand should be available to the command line. - Ensure
python3can be called from the command line. Install it if it's not available. - Copy this Image Converter script into the
external-codefolder. - The conversion script has a dependency. Use
pip3 install pillowto 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-examplefolder intoconfig
- Copy the contents of the
config-examplefolder intoconfig - Add your own images into the
config/imagesfolder. - Edit
config/config.pyto 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_deployfolder containing acn_schedulefolder which has animagessubfolder and yourconfig.pyfile.
- 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_schedulefolder if it exists. - Find the
_deployfolder on your computer (the top file browser pane). - Right click
_deploy/cn_scheduleand clickupload to / - Open
badge.pyin Thonny. - Hit the
Run Current Scriptbutton. This will loadbadge.pyonto 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).
