Releases: adafruit/Adafruit_CircuitPython_PyBadger
2.2.1 - Added Black check, reran Black with Python 3 target.
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
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.
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 backgroundimage_background
allows you to specify a compatible bitmap for the backgroundbadge_line
allows you to create a line of text to displayshow_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.
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 backgroundimage_background
allows you to specify a compatible bitmap for the backgroundbadge_line
allows you to create a line of text to displayshow_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!
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 backgroundimage_background
allows you to specify a compatible bitmap for the backgroundbadge_line
allows you to create a line of text to displayshow_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!
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 backgroundimage_background
allows you to specify a compatible bitmap for the backgroundbadge_line
allows you to create a line of text to displayshow()
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!
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
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
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
- 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.