Skip to content

New custom badge feature!

Compare
Choose a tag to compare
@kattni kattni released this 27 Feb 15:59
8667006

REMEMBER - 2.0.0 was a BREAKING CHANGE. Import is no longer the same as pre-2.0.0, and the library no longer requires instantiation. It is now:

from adafruit_pybadger import pybadger

2.0.1 adds a custom badge feature! You can now display lines of text over a color-block or image background, each of a different color, scale, and font. You also have the option to left justify the font. Examples for CLUE and PyBadge/PyGamer are in the examples folder.

New features are:

  • badge_background creates a customisable color-block badge background
  • image_background allows you to specify a compatible bitmap for the background
  • badge_line allows you to create a line of text to display
  • show() displays your badge. Required for badge to display.

To use in CircuitPython, simply install the Adafruit CircuitPython bundle.

Read the docs for info on how to use it.