Skip to content

Releases: adafruit/Adafruit_CircuitPython_PyBadger

2.2.1 - Added Black check, reran Black with Python 3 target.

10 Apr 18:03
8aca7b9
Compare
Choose a tag to compare

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

To use in CPython, pip3 install adafruit-circuitpython-pybadger.

Read the docs for info on how to use it.

2.2.0 - Upgrade to latest Pylint, implement Black formatting

17 Mar 23:50
1cf2d83
Compare
Choose a tag to compare

We have upgraded Pylint checks to use the latest version of Pylint and implemented usage of Black Python formatting. This does not change the functionality of the code - it is designed to bring it up to current standards and make it more readable.

  • Remove pinned Pylint version number from build.yml file
  • Synced .pylintrc file to match Adafruit standard
  • Ran upgraded Pylint and applied any changes or new disables necessary
  • Ran Black formatter and allowed application of changes across entire repo

For more information on using Pylint and Black on your code, check out this guide on working with Pylint and Black

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

To use in CPython, pip3 install adafruit-circuitpython-pybadger.

Read the docs for info on how to use it.

New custom image badge example.

04 Mar 00:46
2b87822
Compare
Choose a tag to compare

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

Updates since 2.0.0:

  • show() renamed to show_custom_badge.
  • Added URL to example QR code.

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_custom_badge() 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.

Custom badge feature - Example update.

27 Feb 17:16
2681b4b
Compare
Choose a tag to compare

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

Updates since 2.0.0:

  • show() renamed to show_custom_badge.
  • Added URL to example QR code.

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_custom_badge() 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.

Update to new custom badge feature!

27 Feb 17:09
cdd5658
Compare
Choose a tag to compare

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

Update: show() renamed to show_custom_badge

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_custom_badge() 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.

New custom badge feature!

27 Feb 15:59
8667006
Compare
Choose a tag to compare

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.

BREAKING CHANGE - Now includes CLUE support!

20 Feb 16:57
bf25d8b
Compare
Choose a tag to compare

THIS IS A BREAKING CHANGE. Import is no longer the same and the library no longer requires instantiation. It is now:

from adafruit_pybadger import pybadger

All code beyond import and instantiation should function the same if library was instantiated as pybadger. To use features, simply include them as pybadger.foo, e.g.:

print(pybadger.acceleration)
pybadger.show_qr_code()

Updates:

  • No new features have been added.
  • Board type is automatically detected and applicable features are imported.
  • Features that are not supported on a given board throw a clear error.

Improved Business Card Code

19 Feb 01:03
d3da430
Compare
Choose a tag to compare

This release includes an improvement to the business card code to reduce redrawing and remove the background from the labels. Thanks @nnja.

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

Read the docs for info on how to use it.

Internal refactoring to reduce size

14 Feb 17:21
9789a71
Compare
Choose a tag to compare

This release includes internal factoring to reduce size, but not functionality. Thanks @nnja.

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

Read the docs for info on how to use it.

PyGamer Simulated Directional Buttons

16 Jan 15:51
445a0e4
Compare
Choose a tag to compare
  • Added simulated UP/DOWN/LEFT/RIGHT buttons from analog joystick on PyGamer

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

Read the docs for info on how to use it.